1
0
mirror of https://github.com/amix/vimrc synced 2025-06-17 02:15:01 +08:00

Updated plugins

This commit is contained in:
Amir
2021-05-05 10:25:00 +02:00
parent 8e54cbc92e
commit a7a471a207
265 changed files with 7773 additions and 1880 deletions

View File

@ -284,7 +284,7 @@ function! s:parse_subvert(bang,line1,line2,count,args)
else
let args = a:args
endif
let separator = matchstr(args,'^.')
let separator = '\v((\\)@<!(\\\\)*\\)@<!' . matchstr(args,'^.')
let split = split(args,separator,1)[1:]
if a:count || split == [""]
return s:parse_substitute(a:bang,a:line1,a:line2,a:count,split)
@ -399,6 +399,8 @@ function! s:grep_command(args,bang,flags,word)
let dict = s:create_dictionary(a:word,"",opts)
if &grepprg == "internal"
let lhs = "'".s:pattern(dict,opts.boundaries)."'"
elseif &grepprg =~# '^rg\|^ag'
let lhs = "'".s:egrep_pattern(dict,opts.boundaries)."'"
else
let lhs = "-E '".s:egrep_pattern(dict,opts.boundaries)."'"
endif