aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-09 16:24:10 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-09 16:24:20 +1200
commitf32d22cfc91fdf98cb63199dabf6167736d210e9 (patch)
tree1d0df9146c8149f5bef9c81ec37588f8d21f17a2
parentHandle special encoding with :scriptencoding (diff)
downloaddotfiles-f32d22cfc91fdf98cb63199dabf6167736d210e9.tar.gz
dotfiles-f32d22cfc91fdf98cb63199dabf6167736d210e9.zip
Check MYVIM more completely before adding to &rtp
-rw-r--r--vim/vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 9d32520e..46bbf08f 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -107,7 +107,7 @@ endif
" to the first element of the default &runtimepath. If this is the case,
" we'll slot it in, having already checked it for troublesome characters.
"
-if $MYVIM !=# runtimepath[0]
+if $MYVIM !=# '' && len(runtimepath) > 0 && $MYVIM !=# runtimepath[0]
set runtimepath^=$MYVIM
endif