New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use inside vim? #425
Comments
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. |
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:
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:
|
If you don't mind using a plugin, It's my pleasure to recommend my plugin ctrlsf.vim which integrates |
As an addendum, since this issue comes up when searching for this in search engines. 11/01/2022: Updated |
@pirj A noob question here: If this works, why do we need a plugin like vim-ripgrep? |
At a glance, it offers match highlighting, and configuring quickfix window location. |
The second value is not needed, it's there in the default 'grepformat' string, and it's better to only append to that value instead of overwriting it, in case you don't have rg installed, you'll still have a usable grepformat value, so something like: if executable('rg') | set grepformat+=%f:%l:%c:%m grepprg=rg <options you prefer> | endif |
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.
The text was updated successfully, but these errors were encountered: