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 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