diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-14 17:19:55 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-14 17:19:55 +1200 |
commit | 37656a5b54e946218f859aac9abcd1ab4dbdef80 (patch) | |
tree | c00b14be53a99e3ce7ed2509c162cb4b18808c5b | |
parent | Refactor &runtimepath split a bit more (diff) | |
download | dotfiles-37656a5b54e946218f859aac9abcd1ab4dbdef80.tar.gz dotfiles-37656a5b54e946218f859aac9abcd1ab4dbdef80.zip |
Use script-local runtimepath list
-rw-r--r-- | vim/vimrc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |