From cf68545caada47a8e5f5758dd9b96b7fafb4893b Mon Sep 17 00:00:00 2001 From: gmarik Date: Wed, 8 Dec 2010 08:06:31 -0600 Subject: [PATCH] Put message back into s:install --- autoload/vundle.vim | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/autoload/vundle.vim b/autoload/vundle.vim index dd893e1..3622cea 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -24,10 +24,7 @@ endf func! vundle#install_bundles(bang) silent source ~/.vimrc if !isdirectory(g:bundle_dir) | call mkdir(g:bundle_dir, 'p') | endif - for bundle in g:bundles | - let synced = s:install('!' == a:bang, bundle) - echo bundle.name.' '.(synced ? ' ': ' already').' installed' - endfor + for bundle in g:bundles | call s:install('!' == a:bang, bundle) | endfor endf func! vundle#helptags() @@ -86,10 +83,9 @@ func! s:sync(bang, bundle) endf func! s:install(bang, bundle) - if !s:sync(a:bang, a:bundle) | return 0 | end + let synced = s:sync(a:bang, a:bundle) + echo a:bundle.name.' '.(synced ? ' ': ' already').' installed' call s:helptags(a:bundle.rtpath()) - exec 'runtime! '.a:bundle.rtpath().'/plugin/*.vim' - return 1 endf let s:bundle = {}