From fbb14398ea74ddf4f79d9a855536fa606a84087c Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 13 Jun 2023 09:24:39 +0800 Subject: vim: Improve the ag (the silver searcher) config --- _vim/vimrc | 6 +++--- 1 file 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 vnoremap y "+y noremap 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 -- cgit v1.2.2