diff --git a/.vimrc b/.vimrc index f6aee492b..46eae46c1 100644 --- a/.vimrc +++ b/.vimrc @@ -614,7 +614,9 @@ else let s:ctrlp_fallback = 'find %s -type f' endif - unlet g:ctrlp_user_command + if exists("g:ctrlp_user_command") + unlet g:ctrlp_user_command + endif let g:ctrlp_user_command = { \ 'types': { \ 1: ['.git', 'cd %s && git ls-files . --cached --exclude-standard --others'],