aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-08 20:41:14 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-08 20:41:14 +1200
commit0d9d766ceb0c6111c28f67d11171c7f082b1de58 (patch)
tree5e4d4b704135f45fd0d4112eb40e84221127d1ec
parentRemove unneeded qualifier (diff)
downloaddotfiles-0d9d766ceb0c6111c28f67d11171c7f082b1de58.tar.gz
dotfiles-0d9d766ceb0c6111c28f67d11171c7f082b1de58.zip
Explain the choice of a 'runtimepath' split func
-rw-r--r--vim/vimrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 595a757f..45f06130 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -37,7 +37,9 @@ if !exists('$MYVIM') && &runtimepath !=# ''
" We'll use the first path specified in 'runtimepath', rather like Vim
" itself does for spelling database files in the absence of a setting for
- " 'spellfile'.
+ " 'spellfile'. Splitting the values of an option like 'runtimepath' is
+ " a bit more complicated than it looks; we defer it to an autoloaded utility
+ " function for clarity.
"
let s:runtimepath_paths = vimrc#SplitOption(&runtimepath)
let $MYVIM = s:runtimepath_paths[0]