From 3c3b6e708a9d723380e825939bbfe9a8235e5bb0 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 28 Aug 2019 15:38:54 +0800 Subject: vim: Use the Silver Searcher "ag" --- _vim/vimrc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '_vim/vimrc') diff --git a/_vim/vimrc b/_vim/vimrc index e2c39d1..cef50c2 100644 --- a/_vim/vimrc +++ b/_vim/vimrc @@ -300,6 +300,13 @@ inoremap vnoremap y "+y noremap p "+p +" Use the Silver Searcher +if executable("ag") + set grepprg=ag\ --nogroup\ --nocolor + let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' + let g:ctrlp_use_caching = 0 +endif + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Plugin settings -- cgit v1.2.2