From 055439e1fc9d110ae96a2a83444f530125292d01 Mon Sep 17 00:00:00 2001 From: gmarik Date: Sat, 13 Aug 2011 19:50:15 -0500 Subject: [PATCH] helptags are logged-only --- autoload/vundle/installer.vim | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index d3e8726..03e1915 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -10,8 +10,7 @@ func! vundle#installer#new(bang, ...) abort call vundle#config#require(bundles) - let helptags = vundle#installer#helptags(bundles) - echo 'Done! Helptags: '.len(helptags).' bundles processed' + call vundle#installer#helptags(bundles) endf @@ -79,7 +78,14 @@ endf func! vundle#installer#helptags(bundles) abort let bundle_dirs = map(copy(a:bundles),'v:val.rtpath()') let help_dirs = filter(bundle_dirs, 's:has_doc(v:val)') + + call s:log('') + call s:log('Helptags:') + call map(copy(help_dirs), 's:helptags(v:val)') + + call s:log('Helptags: '.len(help_dirs).' bundles processed') + return help_dirs endf @@ -150,10 +156,12 @@ func! s:has_doc(rtp) abort endf func! s:helptags(rtp) abort + let doc_path = a:rtp.'/doc/' + call s:log(':helptags '.doc_path) try - helptags `=a:rtp.'/doc/'` + helptags `=doc_path` catch - echohl Error | echo "Error generating helptags in ".a:rtp | echohl None + call s:log("> Error running :helptags ".doc_path) endtry endf