From ed1492d57ddb7b481ca7e741a297684e96af7e34 Mon Sep 17 00:00:00 2001 From: gryf Date: Wed, 10 May 2017 19:28:51 +0200 Subject: [PATCH] Removed old grep plugin, added support for silver searcher in Ack and CtrlP plugins --- vimrc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 66aaec2..8fb1da4 100644 --- a/vimrc +++ b/vimrc @@ -51,7 +51,6 @@ Plug 'vim-scripts/mako.vim' Plug 'vim-scripts/mako.vim--Torborg' Plug 'vimwiki/vimwiki' Plug 'will133/vim-dirdiff' -Plug 'yegappan/grep' Plug 'vim-scripts/DrawIt' Plug 'rust-lang/rust.vim' @@ -194,6 +193,11 @@ if $TERM == 'linux' && !has("gui_running") endif "}}} "PLUGINS: {{{ +"Ack {{{2 +if executable('ag') + let g:ackprg = 'ag --vimgrep' +endif +"}}} "KickAssembler {{{2 let g:kickass_path = '/home/gryf/c64/PCTools/Cross-assemblers/KickAssembler/KickAss.jar' "}}} @@ -207,6 +211,17 @@ let g:ctrlp_custom_ignore = { \ 'file': '\.pyo$\|\.pyc$\|\.pyd$', \ } let g:ctrlp_map = '' +" The Silver Searcher +if executable('ag') + " Use ag over grep + set grepprg=ag\ --nogroup\ --nocolor + + " Use ag in CtrlP for listing files. Lightning fast and respects .gitignore + let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' + + " ag is fast enough that CtrlP doesn't need to cache + let g:ctrlp_use_caching = 0 +endif map :CtrlPBuffer "}}} " DirDiff {{{2