From 7485391b8e68c6f696563ad8a79e68d9e1d9ec92 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 8 Jun 2019 23:39:39 +1200 Subject: Correct type of plugin existence checks --- vim/vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vim') 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 (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 (InsertCancel) endif -- cgit v1.2.3