We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bb2425 commit 338771eCopy full SHA for 338771e
plugin/vim-ripgrep.vim
@@ -61,7 +61,8 @@ fun! s:RgSearch(txt)
61
if &smartcase == 1
62
let l:rgopts = l:rgopts . '-S '
63
endif
64
- silent! exe 'grep! ' . l:rgopts . a:txt
+ " Escaping Command-line special characters '#', '%' (:h :_%), and '|' (:h :bar)
65
+ silent! exe 'grep! ' . l:rgopts . escape(a:txt, "#%|")
66
if len(getqflist())
67
exe g:rg_window_location 'copen'
68
redraw!
0 commit comments