smartcase for rg

Fri, 25 Oct 2019 14:52:21 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 25 Oct 2019 14:52:21 -0500
changeset 815
478ee3262dce
parent 814
639a3868c3da
child 816
f058603b86b6

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
 

mercurial