aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim/vimrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index e638bbd4..8e7035b7 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -4,7 +4,8 @@
" 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') && &runtimepath !=# ''
- let $MYVIM = vimrc#SplitOption(&runtimepath)[0]
+ let s:runtimepath_paths = vimrc#SplitOption(&runtimepath)
+ let $MYVIM = s:runtimepath_paths[0]
endif
" The all-important default indent settings; filetypes to tweak