From b80c1a274a7a39c582f6642cd1afde18d0a6755c Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Thu, 24 Jan 2019 17:17:55 +1300 Subject: [PATCH] allow using the bang modifier with the command supplying a bang has no effect, but permits :rg! as a drop-in replacement for grep!. --- plugin/vim-ripgrep.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/vim-ripgrep.vim b/plugin/vim-ripgrep.vim index 9bc029d..0fd91af 100644 --- a/plugin/vim-ripgrep.vim +++ b/plugin/vim-ripgrep.vim @@ -145,5 +145,5 @@ fun! s:RgShowRoot() endif endfun -command! -nargs=* -complete=file Rg :call s:Rg() +command! -nargs=* -complete=file -bang Rg :call s:Rg() command! -complete=file RgRoot :call s:RgShowRoot()