1
0
mirror of https://github.com/amix/vimrc synced 2025-07-13 14:55:01 +08:00

Merge branch 'Linux' of https://github.com/Geezus42/vimrc into Linux

This commit is contained in:
geezus
2021-06-30 13:19:18 -05:00
235 changed files with 6246 additions and 1351 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