From 5a7ff95560002147cfb215d162b0fcd2db5f25b7 Mon Sep 17 00:00:00 2001 From: gmarik Date: Sat, 11 Dec 2010 20:37:28 -0600 Subject: [PATCH] Fixing reloading issue. - closes https://github.com/gmarik/vundle/issues/#issue/2 - thanks http://github.com/dag for reporting --- autoload/vundle/installer.vim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index d2e05a8..b9bd083 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -1,6 +1,5 @@ func! vundle#installer#install(bang) - " TODO: obtain Bundles without sourcing .vimrc - silent source ~/.vimrc + call s:reload_bundles() if !isdirectory(g:bundle_dir) | call mkdir(g:bundle_dir, 'p') | endif for bundle in g:bundles | call s:install('!' == a:bang, bundle) | endfor endf @@ -11,6 +10,12 @@ func! vundle#installer#helptags() call s:log('Done. '.c.' bundles processed') endf +func! s:reload_bundles() + " TODO: obtain Bundles without sourcing .vimrc + silent source $MYVIMRC + if !filereadable($MYGVIMRC)| silent source $MYGVIMRC | endif +endf + func! s:helptags(rtp) if !(isdirectory(a:rtp.'/doc') && (!filereadable(a:rtp.'/doc/tags') || filewritable(a:rtp.'/doc/tags'))) return 0