Skip to main content
2 votes
Accepted

How to open ripgrep search in new tab

If you check help file for the quickfix you will find that it has <CR> to open in existing window and <C-w><CR> to open in a split window. There is also a mapping to move a split to ...
Maxim Kim's user avatar
  • 13.7k
2 votes
Accepted

How to use alternation operator in ripgrep + vim?

I would not escape neither the parenthesis and I would add quotes: grep "(const\|let) render" When using grepprg Vim pass the arguments to the program mostly unchanged. The only exception ...
Vivian De Smedt's user avatar
1 vote

How can use :grep with range in neovim with ripgrep as external grep program?

Vim/Neovim internal :vimgrep works for me. :vimgrep /^\%V\s\{8}\a\+/ % All results are places in quickfix list, grep search results respects the given visual range provided. Cheers
avimehenwal's user avatar
1 vote

Custom key binding for project-wide search and replace using FZF.vim Rg function?

No plugins: set the args list (e.g., :args git ls-files) search (:vimgrep /pat/ ##) replace (:cdo substitute/...) save (:argdo update or :wall or whatever) Alternately, search with :grep -R ... * or ...
D. Ben Knoble's user avatar
  • 26.8k
1 vote
Accepted

Opening multiple files in Vim with fzf.vim's Rg command

Any idea why I can't open multiple files with an Rg command? That is how Rg is implemented. If there are multiple entries selected it opens all of them in vim quickfix. Check ag_handler it uses for ...
Maxim Kim's user avatar
  • 13.7k

Only top scored, non community-wiki answers of a minimum length are eligible