diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-08 19:46:34 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-08 19:46:34 +1200 |
commit | ac4f819f65ab48fa77eea31e877dcb846d85e917 (patch) | |
tree | a9392c40a85700ed2dbe3f766b704dad82b9b858 | |
parent | Refactor 'backupskip' processing (diff) | |
download | dotfiles-ac4f819f65ab48fa77eea31e877dcb846d85e917.tar.gz dotfiles-ac4f819f65ab48fa77eea31e877dcb846d85e917.zip |
Refactor 'runtimepath' chopping in vimrc
-rw-r--r-- | vim/vimrc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |