aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-08 23:39:39 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-08 23:39:50 +1200
commit7485391b8e68c6f696563ad8a79e68d9e1d9ec92 (patch)
treee631aec13827ea1ed069f1e17e3580d1e8ed0947 /vim
parentBump Vim 'history' to 10000, the maximum value (diff)
downloaddotfiles-7485391b8e68c6f696563ad8a79e68d9e1d9ec92.tar.gz
dotfiles-7485391b8e68c6f696563ad8a79e68d9e1d9ec92.zip
Correct type of plugin existence checks
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index c275e039..07f39b15 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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