From 6d7321991cc2ee2448cc90ef10192f89948b010e Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 6 Aug 2020 18:24:54 +0300 Subject: [PATCH] \zs has to be single quote escaped --- vim/.vim/plugin/defsplit.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.44.0