Thanks for building this, it's very cool. Quick question, I was wondering if you could please let me know or add to the readme how to integrate this with vim. At the very least I'm interested in 'search and replace' globally within a repository.
Thank you.
You could ask mileszs/ack.vim for integration of rg.
@FSMaxB but from reading the other issues, it seems like some people are using it inside vim already, so I thought there might be a way...
My bad for not searching the internet first. There is this plugin: vim-ripgrep and this article for using with fzf :)
Sounds like you got your answer.
I wouldn't be opposed to putting links to editor integrations in the README. But since I don't use any of them myself, I probably won't do it.
I wouldn't be opposed to putting links to editor integrations in the README. But since I don't use any of them myself, I probably won't do it.
It took me a little to figure out how to do this. Can I open a PR with some suggested context setting for folks interested in this?
@ericandrewlewis Yeah sure! Just put it toward the bottom of the README with the other questions. (At some point, I will split it out into a proper FAQ.)
For the future researchers:
set grepprg=rg\ --vimgrep\ --no-heading\ --smart-case
works great with no other configuration required.
I use this mapping to open the list of the files in location list:
nnoremap <Leader>g :silent lgrep<Space>
and further navigate it:
nnoremap <silent> [f :lprevious<CR>
nnoremap <silent> ]f :lnext<CR>
If you don't mind using a plugin, It's my pleasure to recommend my plugin ctrlsf.vim which integrates rg out of the box, and supports asynchronous searching.

For the future researchers:
set grepprg=rg\ --vimgrep\ --no-heading\ --smart-caseworks great with no other configuration required.
I use this mapping to open the list of the files in location list:
nnoremap <Leader>g :silent lgrep<Space>and further navigate it:
nnoremap <silent> [f :lprevious<CR> nnoremap <silent> ]f :lnext<CR>
As an addendum, since this issue comes up when searching for this in search engines.
Also set the format like so: set grepformat=%f:%l:%c:%m,%f:%l:%m
This will make the location list understand the output format better
Most helpful comment
For the future researchers:
works great with no other configuration required.
I use this mapping to open the list of the files in location list:
and further navigate it: