aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-14 17:19:55 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-14 17:19:55 +1200
commit37656a5b54e946218f859aac9abcd1ab4dbdef80 (patch)
treec00b14be53a99e3ce7ed2509c162cb4b18808c5b
parentRefactor &runtimepath split a bit more (diff)
downloaddotfiles-37656a5b54e946218f859aac9abcd1ab4dbdef80.tar.gz
dotfiles-37656a5b54e946218f859aac9abcd1ab4dbdef80.zip
Use script-local runtimepath list
-rw-r--r--vim/vimrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 0b52a2f9..7a67920a 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -101,12 +101,12 @@ scriptencoding utf-8
"
" Vim, I love you, but you are really weird.
"
-let runtimepath = map(
+let s:runtimepath = map(
\ split(&runtimepath, '\\\@<!,[, ]*'),
\ "substitute(v:val, '\\\\,', '', 'g')"
\ )
if !exists('$MYVIM')
- let $MYVIM = runtimepath[0]
+ let $MYVIM = s:runtimepath[0]
endif
" Having either imported or defined a value for the MYVIM environment