Permalink
Browse files

Don't cache CtrlP results when using ag

It gets very annoying to manually force CtrlP to re-index every time I
add a new file. Since ag is so fast, we can turn off caching when it
powers CtrlP without any noticeable impact on search speed.
  • Loading branch information...
JoelQ committed Aug 23, 2013
1 parent ee00ab0 commit a4dff5ea80e9041a215f10c279b071a463cc6d65
Showing with 3 additions and 0 deletions.
  1. +3 −0 vimrc
View
3 vimrc
@@ -67,6 +67,9 @@ 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
" Color scheme

0 comments on commit a4dff5e

Please sign in to comment.