From 86003ba13a07363b0382a526ea0396e9e389d0b1 Mon Sep 17 00:00:00 2001 From: spf13 Date: Fri, 1 May 2015 15:50:56 -0400 Subject: [PATCH] Fixing error message on startup --- .vimrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'],