Put message back into s:install

This commit is contained in:
gmarik 2010-12-08 08:06:31 -06:00
parent c30fc73961
commit cf68545caa

View File

@ -24,10 +24,7 @@ endf
func! vundle#install_bundles(bang) func! vundle#install_bundles(bang)
silent source ~/.vimrc silent source ~/.vimrc
if !isdirectory(g:bundle_dir) | call mkdir(g:bundle_dir, 'p') | endif if !isdirectory(g:bundle_dir) | call mkdir(g:bundle_dir, 'p') | endif
for bundle in g:bundles | for bundle in g:bundles | call s:install('!' == a:bang, bundle) | endfor
let synced = s:install('!' == a:bang, bundle)
echo bundle.name.' '.(synced ? ' ': ' already').' installed'
endfor
endf endf
func! vundle#helptags() func! vundle#helptags()
@ -86,10 +83,9 @@ func! s:sync(bang, bundle)
endf endf
func! s:install(bang, bundle) 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()) call s:helptags(a:bundle.rtpath())
exec 'runtime! '.a:bundle.rtpath().'/plugin/*.vim'
return 1
endf endf
let s:bundle = {} let s:bundle = {}