aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2023-06-13 09:24:39 +0800
committerAaron LI <aly@aaronly.me>2023-06-13 10:02:50 +0800
commitfbb14398ea74ddf4f79d9a855536fa606a84087c (patch)
tree8755015c1eb1cf923dd297e410db1127c52ed5bc
parent74344cab23abfd18f78a853d98db7e35e2774925 (diff)
downloaddotfiles-fbb14398ea74ddf4f79d9a855536fa606a84087c.tar.bz2
vim: Improve the ag (the silver searcher) config
-rw-r--r--_vim/vimrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/_vim/vimrc b/_vim/vimrc
index 47ac51b..c9420e4 100644
--- a/_vim/vimrc
+++ b/_vim/vimrc
@@ -300,9 +300,9 @@ inoremap <F1> <Esc>
vnoremap <leader>y "+y
noremap <leader>p "+p
-" Use the Silver Searcher
-if executable("ag")
- set grepprg=ag\ --nogroup\ --nocolor
+" The Silver Searcher
+if executable('ag')
+ set grepprg=ag\ --vimgrep
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
let g:ctrlp_use_caching = 0
endif