Use RipGrep in Vim and display results in a quickfix list
Find a file
2021-12-13 16:55:43 +01:00
plugin Fix E1208 started showing up in Vim v8.2.3149 2021-07-12 10:03:02 +09:00
LICENSE add license 2016-09-24 22:57:16 -07:00
README.md Added dependencies section, there has to be rg binary accessible in system 2021-04-29 12:51:29 +02:00

vim-ripgrep

:Rg <string|pattern>

Word under cursor will be searched if no argument is passed to Rg

configuration

Setting Default Details
g:rg_binary rg path to rg
g:rg_format %f:%l:%c:%m value of grepformat
g:rg_command g:rg_binary --vimgrep search command
g:rg_highlight false true if you want matches highlighted
g:rg_derive_root false true if you want to find project root from cwd
g:rg_root_types ['.git'] list of files/dir found in project root
g:rg_window_location botright quickfix window location

misc

Show root search dir

:RgRoot

Dependencies

Please make sure you have 'rg' binary correctly installed in your system Ubuntu/Debian:

apt-get install ripgrep

MacOS:

brew install rg