allow using the bang modifier with the command

supplying a bang has no effect, but permits :rg! as a drop-in replacement
for grep!.
This commit is contained in:
Rohit Grover 2019-01-24 17:17:55 +13:00
parent ec87af6b69
commit b80c1a274a

View file

@ -145,5 +145,5 @@ fun! s:RgShowRoot()
endif
endfun
command! -nargs=* -complete=file Rg :call s:Rg(<q-args>)
command! -nargs=* -complete=file -bang Rg :call s:Rg(<q-args>)
command! -complete=file RgRoot :call s:RgShowRoot()