aboutsummaryrefslogtreecommitdiffstats
path: root/_vim/vimrc
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-08-28 15:38:54 +0800
committerAaron LI <aly@aaronly.me>2019-08-28 15:38:54 +0800
commit3c3b6e708a9d723380e825939bbfe9a8235e5bb0 (patch)
treef52b8401160e67d9265b3b8283c17a91ff80dc1a /_vim/vimrc
parentdf88e42f0c3657bd848bd2f65b931fa0999d3361 (diff)
downloaddotfiles-3c3b6e708a9d723380e825939bbfe9a8235e5bb0.tar.bz2
vim: Use the Silver Searcher "ag"
Diffstat (limited to '_vim/vimrc')
-rw-r--r--_vim/vimrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/_vim/vimrc b/_vim/vimrc
index e2c39d1..cef50c2 100644
--- a/_vim/vimrc
+++ b/_vim/vimrc
@@ -300,6 +300,13 @@ inoremap <F1> <Esc>
vnoremap <leader>y "+y
noremap <leader>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