aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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