From 68aa1b68eb3633ad0746411aa905eb688bca4d9b Mon Sep 17 00:00:00 2001 From: gmarik Date: Tue, 7 Dec 2010 20:43:23 -0600 Subject: [PATCH] Provide feedback after helptags --- autoload/vundle.vim | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/autoload/vundle.vim b/autoload/vundle.vim index 487bcd3..c090893 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -26,10 +26,13 @@ func! vundle#install_bundles() silent source ~/.vimrc exec '!mkdir -p '.g:bundle_dir for bundle in g:bundles | call s:install(bundle) | endfor + echo 'Done' endf func! vundle#helptags() - for bundle in g:bundles | call s:helptags(bundle) | endfor + let c = 0 + for bundle in g:bundles | let c += s:helptags(bundle.rtpath()) | endfor + echo 'Done. '.c.' helptags generated' endf func! s:rtp_add(dir) @@ -62,11 +65,12 @@ func! s:parse_name(arg) return {'name': name, 'uri': uri } endf -func! s:helptags(bundle) - let dir = a:bundle.rtpath() - if isdirectory(dir.'/doc') && (!filereadable(dir.'/doc/tags') || filewritable(dir.'/doc/tags')) - helptags `=dir.'/doc'` +func! s:helptags(rtp) + if !(isdirectory(a:rtp.'/doc') && (!filereadable(a:rtp.'/doc/tags') || filewritable(a:rtp.'/doc/tags'))) + return 0 endif + helptags `=a:rtp.'/doc'` + return 1 endf func! s:require(bundle)