aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-06 14:58:40 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-06 14:58:40 +1200
commitc37113e95794033467354956c7643e52af6a8822 (patch)
tree610606c694e5a5413869af7779d8d13ad7c3a74f
parentAdd missing 'abort' attribute to new function (diff)
downloaddotfiles-c37113e95794033467354956c7643e52af6a8822.tar.gz
dotfiles-c37113e95794033467354956c7643e52af6a8822.zip
Use more natural test for &runtimepath value
-rw-r--r--vim/vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 2e9d1f1f..ccd7b9c7 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -3,7 +3,7 @@
" Set an environment variable for the user runtime directory, if not already
" set; use the first element of &runtimepath, rather like 'spellfile'
-if !exists('$MYVIM') && strlen(&runtimepath) > 0
+if !exists('$MYVIM') && &runtimepath !=# ''
let $MYVIM = vimrc#SplitEscaped(&runtimepath)[0]
endif