Skip to content

Can I --vimgrep with only 1 match per line? #2282

Answered by hberge
hberge asked this question in Q&A
Discussion options

You must be logged in to vote

Wow, only seconds after posting I found the --no-heading option. So with ripgrep v13 I can get the behavior I want by setting grepprg in vim as follows:

:set grepprg=rg\ -C\ 0\ -n\ --no-heading\ $*

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BurntSushi
Comment options

Answer selected by hberge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants