Fri, 25 Oct 2019 14:52:21 -0500
smartcase for rg
.vimrc | file | annotate | diff | comparison | revisions |
--- a/.vimrc +++ b/.vimrc @@ -234,10 +234,10 @@ if has('persistent_undo') endif if executable('rg') - set grepprg=rg\ --vimgrep - set grepformat=%f:%l:%c:%m,%f:%l%m,%f\ \ %l%m + let &grepprg = "rg -S --vimgrep" + let &grepformat = "%f:%l:%c:%m,%f:%l%m,%f %l%m" elseif executable('ag') - set grepprg=ag\ --vimgrep + let &grepprg = "ag --vimgrep" set grepformat^=%f:%l:%c:%m endif