4 ms·
Anyone have any suggestions regarding how to best use Ripgrep within Vim? Specifically, how best to use it to recursively search the current directory (or speci
by justinmayer 10y ago
Anyone have any suggestions regarding how to best use Ripgrep within Vim? Specifically, how best to use it to recursively search the current directory (or specified directory) and have the results appear in a quickfix window that allows for easily opening the file(s) that contain the searched term.
- burntsushi 10y agoI'd like to get this working too, since I know a lot of folks are happy with it for ag and ack. rg does have a --vimgrep option that should make it as easy as ag to use, but I don't think there is a proper integration just yet.
- nkantar 10y agoI like ripgrep quite a bit from trying it today, and am hoping to find time to work on a Vim plugin this weekend. No promises, but I'll share as soon as I have something usable.
- burntsushi 10y agoThat's fantastic! Please don't hesitate to file an issue if you run into problems.
- eel 10y agoThis is what I set in my .vimrc today, and it seems to be working pretty well: if executable('rg') set grepprg=rg\ --no-heading\ --vimgrep set grepformat=%f:%l:%c:%m endif Then you can just :grep yourquery (or :grep yourquery path), and the results will show in a quickfix window.