diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-17 18:18:35 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-17 18:18:35 +1200 |
commit | 7eedee00cadb3293f7c29e888b0afabe53340c41 (patch) | |
tree | 7e0b275cff35a0440ce39935a9f25271a82d7167 | |
parent | Simplify a vimrc compound conditional with get() (diff) | |
download | dotfiles-7eedee00cadb3293f7c29e888b0afabe53340c41.tar.gz dotfiles-7eedee00cadb3293f7c29e888b0afabe53340c41.zip |
Use slightly more readable quoting for regexes
-rw-r--r-- | vim/autoload/spellfile_local.vim | 4 | ||||
-rw-r--r-- | vim/vimrc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vim/autoload/spellfile_local.vim b/vim/autoload/spellfile_local.vim index 081b2970..e4759737 100644 --- a/vim/autoload/spellfile_local.vim +++ b/vim/autoload/spellfile_local.vim @@ -1,14 +1,14 @@ function! s:SplitOption(string) abort return map( \ split(a:string, '\\\@<!,[, ]*') - \,"substitute(v:val, '\\\\,', '', 'g')" + \,'substitute(v:val, ''\\,'', '''', ''g'')' \) endfunction function! s:JoinOption(list) abort return join(map( \ a:list - \,"substitute(v:val, '\\\\\\@<!,', '\\\\,', 'g')" + \,'substitute(v:val, ''\\\@<!,'', ''\\,'', ''g'')' \), ',') endfunction @@ -104,7 +104,7 @@ scriptencoding utf-8 " let s:runtimepath = map( \ split(&runtimepath, '\\\@<!,[, ]*') - \,"substitute(v:val, '\\\\,', '', 'g')" + \,'substitute(v:val, ''\\,'', '''', ''g'')' \) if !exists('$MYVIM') let $MYVIM = s:runtimepath[0] |