Provide feedback after helptags

This commit is contained in:
gmarik 2010-12-07 20:43:23 -06:00
parent 338bbf0daf
commit 68aa1b68eb

View File

@ -26,10 +26,13 @@ func! vundle#install_bundles()
silent source ~/.vimrc silent source ~/.vimrc
exec '!mkdir -p '.g:bundle_dir exec '!mkdir -p '.g:bundle_dir
for bundle in g:bundles | call s:install(bundle) | endfor for bundle in g:bundles | call s:install(bundle) | endfor
echo 'Done'
endf endf
func! vundle#helptags() 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 endf
func! s:rtp_add(dir) func! s:rtp_add(dir)
@ -62,11 +65,12 @@ func! s:parse_name(arg)
return {'name': name, 'uri': uri } return {'name': name, 'uri': uri }
endf endf
func! s:helptags(bundle) func! s:helptags(rtp)
let dir = a:bundle.rtpath() if !(isdirectory(a:rtp.'/doc') && (!filereadable(a:rtp.'/doc/tags') || filewritable(a:rtp.'/doc/tags')))
if isdirectory(dir.'/doc') && (!filereadable(dir.'/doc/tags') || filewritable(dir.'/doc/tags')) return 0
helptags `=dir.'/doc'`
endif endif
helptags `=a:rtp.'/doc'`
return 1
endf endf
func! s:require(bundle) func! s:require(bundle)