3 ms·
Strictly speaking, one doesn't even need a plugin to use ack, ag or ripgrep from Vim. It is enough to set the "grepprg" option (perhaps also "grepformat") and t
by danidiaz 8y ago
Strictly speaking, one doesn't even need a plugin to use ack, ag or ripgrep from Vim. It is enough to set the "grepprg" option (perhaps also "grepformat") and then one can invoke the built-in ":grep" command.
For example, to use ripgrep:
set grepprg=rg\ --vimgrep\ --no-heading
- JackCh 8y ago:grep is what I used originally and found it unsatisfactory; eventually I switched to my own keybinding for !ack <cword>, then some time after that switched to Ack.vim with ag.
- burntsushi 8y agoSmall note: --vimgrep implies --no-heading, so you can drop --no-heading. :-)