aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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