Skip to content
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

Closed
Neats29 opened this issue Mar 30, 2017 · 7 comments

Comments

Projects
None yet
5 participants
@Neats29
Copy link

commented Mar 30, 2017

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.

@FSMaxB

This comment has been minimized.

Copy link

commented Mar 30, 2017

You could ask mileszs/ack.vim for integration of rg.

@Neats29

This comment has been minimized.

Copy link
Author

commented Mar 30, 2017

@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...

@Neats29

This comment has been minimized.

Copy link
Author

commented Mar 30, 2017

My bad for not searching the internet first. There is this plugin: vim-ripgrep and this article for using with fzf :)

@BurntSushi BurntSushi closed this Mar 31, 2017

@BurntSushi

This comment has been minimized.

Copy link
Owner

commented Mar 31, 2017

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.

@ericandrewlewis

This comment has been minimized.

Copy link

commented Dec 7, 2017

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?

@BurntSushi

This comment has been minimized.

Copy link
Owner

commented Dec 7, 2017

@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.)

@pirj

This comment has been minimized.

Copy link

commented Apr 15, 2018

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.