diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-08 23:41:27 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-08 23:41:27 +1200 |
commit | 330c0325ab5a307fd5f1f618593561e727353fa0 (patch) | |
tree | b61b17e5b656c6b8225fa01b1dbe87204b411217 | |
parent | Break a paragraph (diff) | |
download | dotfiles-330c0325ab5a307fd5f1f618593561e727353fa0.tar.gz dotfiles-330c0325ab5a307fd5f1f618593561e727353fa0.zip |
Adjust split explanation
-rw-r--r-- | vim/vimrc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |