diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-18 22:23:59 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-18 22:23:59 +1200 |
commit | 26d9f86f22f69e6ae2cde9c55861ccf92a202886 (patch) | |
tree | c0e61869daae3cfd6cd0554e73449afce97ddf66 | |
parent | Merge branch 'release/v6.29.0' into develop (diff) | |
download | dotfiles-26d9f86f22f69e6ae2cde9c55861ccf92a202886.tar.gz dotfiles-26d9f86f22f69e6ae2cde9c55861ccf92a202886.zip |
Inline a script-local variable in vimrc
-rw-r--r-- | vim/vimrc | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -102,12 +102,11 @@ scriptencoding utf-8 " I'll factor all of this mess out into a global function if I ever need it " anywhere else. Vim, I love you, but you are really weird. " -let s:runtimepath = map( - \ split(&runtimepath, '\\\@<!,[, ]*') - \,'substitute(v:val, ''\\,'', '''', ''g'')' - \) if !exists('$MYVIM') - let $MYVIM = s:runtimepath[0] + let $MYVIM = map( + \ split(&runtimepath, '\\\@<!,[, ]*') + \,'substitute(v:val, ''\\,'', '''', ''g'')' + \)[0] endif " Having either imported or defined a value for the MYVIM environment |