diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-08 23:39:39 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-08 23:39:50 +1200 |
commit | 7485391b8e68c6f696563ad8a79e68d9e1d9ec92 (patch) | |
tree | e631aec13827ea1ed069f1e17e3580d1e8ed0947 | |
parent | Bump Vim 'history' to 10000, the maximum value (diff) | |
download | dotfiles-7485391b8e68c6f696563ad8a79e68d9e1d9ec92.tar.gz dotfiles-7485391b8e68c6f696563ad8a79e68d9e1d9ec92.zip |
Correct type of plugin existence checks
-rw-r--r-- | vim/vimrc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -611,7 +611,7 @@ catch endtry " Space bar scrolls down a page, :next at buffer's end if plugin available -if globpath(&runtimepath, 'plugin/scroll_next.vim') +if globpath(&runtimepath, 'plugin/scroll_next.vim') !=# '' \ && &loadplugins nmap <Space> <Plug>(ScrollNext) else @@ -620,7 +620,7 @@ endif " Remap insert Ctrl-C to undo the escaped insert operation, but don't break " the key if the plugin isn't there -if globpath(&runtimepath, 'plugin/insert_cancel.vim') +if globpath(&runtimepath, 'plugin/insert_cancel.vim') !=# '' \ && &loadplugins imap <C-C> <Plug>(InsertCancel) endif |