dotfiles

configuration files
git clone https://pi.duncano.de/git/dotfiles.git
Log | Files | Refs | README

commit 88a34de1209c2362e9cf883492c5f06f5b7fd578
parent bb9d6714070db9cd83db846e5cbb7747c49ed889
Author: Duncaen <mail@duncano.de>
Date:   Sat, 28 Feb 2015 16:50:14 +0100

ctrlp: use ag if installed

Diffstat:
vim/settings/ctrlp.vim | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/vim/settings/ctrlp.vim b/vim/settings/ctrlp.vim @@ -3,3 +3,11 @@ let g:ctrlp_custom_ignore = { \ 'dir': '\v[\/]\.(git|hg|svn)$', \ 'file': '\.pyc$\|\.pyo$\|\.rbc$|\.rbo$\|\.class$\|\.o$\|\~$\', \ } + +" The Silver Searcher +if executable('ag') + " 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