aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-07-06 22:52:24 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-07-06 22:54:26 +1200
commit8863b60fdbfbec6b356da426b32e9461e17f7b25 (patch)
treebfb80dfe4197f339fe6c72991604516cc47030e5
parentRefine NZ vs US Vim spelling setup (diff)
downloaddotfiles-8863b60fdbfbec6b356da426b32e9461e17f7b25.tar.gz
dotfiles-8863b60fdbfbec6b356da426b32e9461e17f7b25.zip
Add case sensitivity flag to needed opers
-rw-r--r--vim/autoload/plugin.vim3
-rw-r--r--vim/vimrc4
2 files changed, 3 insertions, 4 deletions
diff --git a/vim/autoload/plugin.vim b/vim/autoload/plugin.vim
index b6f3d974..68e3d54b 100644
--- a/vim/autoload/plugin.vim
+++ b/vim/autoload/plugin.vim
@@ -1,5 +1,4 @@
function! plugin#Ready(name) abort
return &loadplugins
- \ && globpath(&runtimepath, 'plugin/'.a:name.'.vim') != ''
+ \ && globpath(&runtimepath, 'plugin/'.a:name.'.vim') !=# ''
endfunction
-
diff --git a/vim/vimrc b/vim/vimrc
index 5109ce6c..7e2eb099 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -123,11 +123,11 @@ scriptencoding utf-8
" Otherwise, do it the other way around: the first path in the 'runtimepath'
" list becomes MYVIM.
"
-if exists('$MYVIM') && $MYVIM != ''
+if exists('$MYVIM') && $MYVIM !=# ''
execute 'set runtimepath^='.escape#Arg(
\ escape#Item(escape#Wild($MYVIM))
\)
-elseif &runtimepath != ''
+elseif &runtimepath !=# ''
let $MYVIM = split#Option(&runtimepath)[0]
endif