diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-06 14:58:40 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-06 14:58:40 +1200 |
commit | c37113e95794033467354956c7643e52af6a8822 (patch) | |
tree | 610606c694e5a5413869af7779d8d13ad7c3a74f | |
parent | Add missing 'abort' attribute to new function (diff) | |
download | dotfiles-c37113e95794033467354956c7643e52af6a8822.tar.gz dotfiles-c37113e95794033467354956c7643e52af6a8822.zip |
Use more natural test for &runtimepath value
-rw-r--r-- | vim/vimrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |