aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-08 23:41:27 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-08 23:41:27 +1200
commit330c0325ab5a307fd5f1f618593561e727353fa0 (patch)
treeb61b17e5b656c6b8225fa01b1dbe87204b411217
parentBreak a paragraph (diff)
downloaddotfiles-330c0325ab5a307fd5f1f618593561e727353fa0.tar.gz
dotfiles-330c0325ab5a307fd5f1f618593561e727353fa0.zip
Adjust split explanation
-rw-r--r--vim/vimrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 1f2042eb..3e3f54cc 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -47,7 +47,7 @@ if !exists('$MYVIM') && &runtimepath !=# ''
" more accurately defined as a comma that is not preceded by a backslash, and
" which is followed by any number of spaces and/or further commas.
"
- " The pattern breaks down like this:
+ " The pattern required for the split breaks down like this:
"
" \\ Literal backslash
" \@<! Negative lookbehind assertion; means that whatever occurred before
@@ -59,10 +59,11 @@ if !exists('$MYVIM') && &runtimepath !=# ''
" We don't have to deal with escaped backslashes; read the source of
" copy_option_part() in vim/src/misc2.c to see why.
"
+ let s:option_split_pattern = '\\\@<!,[, ]*'
+
" Man, I wish the runtime path was just a List, or could be treated as one.
" Vim, I love you, but you are weird.
"
- let s:option_split_pattern = '\\\@<!,[, ]*'
let $MYVIM = split(&runtimepath, s:option_split_pattern)[0]
endif