From: Sergey Matveev Date: Thu, 6 Aug 2020 15:24:54 +0000 (+0300) Subject: \zs has to be single quote escaped X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=6d7321991cc2ee2448cc90ef10192f89948b010e \zs has to be single quote escaped --- diff --git a/vim/.vim/plugin/defsplit.vim b/vim/.vim/plugin/defsplit.vim index ab422c0..f995c8a 100644 --- a/vim/.vim/plugin/defsplit.vim +++ b/vim/.vim/plugin/defsplit.vim @@ -71,7 +71,7 @@ function! s:defsplit(brs_allowable, single_line_comma, ...) let [curly, round, squar, outbuf] = [0, 0, 0, ""] let ready = [strpart(line, 0, brfirst + 1)] let trailing_comma = 1 - for c in split(line[brfirst + 1 : brlast-1], "\zs") + for c in split(line[brfirst + 1 : brlast-1], '\zs') if c ==# "*" | let trailing_comma = 0 | endif if outbuf ==# "" && c ==# " " | continue | endif let outbuf .= c