aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-08 19:46:34 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-08 19:46:34 +1200
commitac4f819f65ab48fa77eea31e877dcb846d85e917 (patch)
treea9392c40a85700ed2dbe3f766b704dad82b9b858
parentRefactor 'backupskip' processing (diff)
downloaddotfiles-ac4f819f65ab48fa77eea31e877dcb846d85e917.tar.gz
dotfiles-ac4f819f65ab48fa77eea31e877dcb846d85e917.zip
Refactor 'runtimepath' chopping in vimrc
-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