Unset ctrlp_user_command prior to redefinition
This commit is contained in:
parent
dab810e27b
commit
47dcd8253d
@ -1,6 +1,8 @@
|
|||||||
|
unlet g:ctrlp_user_command
|
||||||
if executable('ag')
|
if executable('ag')
|
||||||
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
|
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
|
||||||
let g:ctrlp_user_command = 'ag %s --files-with-matches -g "" --ignore "\.git$\|\.hg$\|\.svn$"'
|
let g:ctrlp_user_command =
|
||||||
|
\ 'ag %s --files-with-matches -g ""--ignore "\.git$\|\.hg$\|\.svn$"'
|
||||||
|
|
||||||
" ag is fast enough that CtrlP doesn't need to cache
|
" ag is fast enough that CtrlP doesn't need to cache
|
||||||
let g:ctrlp_use_caching = 0
|
let g:ctrlp_use_caching = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user