From ac7d519e2bcac053a2318c07a2abd120857053e5 Mon Sep 17 00:00:00 2001 From: gmarik Date: Sat, 23 Apr 2011 02:25:58 -0500 Subject: [PATCH] check for $MYVIMRC existence --- autoload/vundle/installer.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index dac1aa4..24bf77b 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -46,7 +46,7 @@ endf func! s:reload_bundles() " TODO: obtain Bundles without sourcing .vimrc - silent source $MYVIMRC + if filereadable($MYVIMRC)| silent source $MYVIMRC | endif if filereadable($MYGVIMRC)| silent source $MYGVIMRC | endif return g:bundles endf