Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

g:tplugin#show_helptags_errors: If true, show errors when running :he…

…lptags.
  • Loading branch information...
commit e13b92121293cb6f917c5defae74ca704b7b6806 1 parent 7962a18
@tomtom authored
Showing with 19 additions and 3 deletions.
  1. +14 −3 autoload/tplugin.vim
  2. +5 −0 doc/tplugin.txt
View
17 autoload/tplugin.vim
@@ -3,8 +3,8 @@
" @GIT: http://github.com/tomtom/tplugin_vim/
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2010-09-17.
-" @Last Change: 2012-01-18.
-" @Revision: 207
+" @Last Change: 2012-01-22.
+" @Revision: 223
if !exists('g:tplugin#autoload_exclude')
@@ -35,6 +35,12 @@ if !exists('g:tplugin#shallow_scan')
endif
+if !exists('g:tplugin#show_helptags_errors')
+ " If true, show errors when running :helptags.
+ let g:tplugin#show_helptags_errors = 1 "{{{2
+endif
+
+
" Write autoload information for each root directory to
" "ROOT/_tplugin.vim".
" Search in autoload/tplugin/autoload/*.vim for prefabricated autoload
@@ -452,7 +458,12 @@ function! s:MakeHelpTags(roots, master_dir) "{{{3
let tags = TPluginFileJoin(doc, 'tags')
if !filereadable(tags) || s:ShouldMakeHelptags(doc)
" echom "DBG MakeHelpTags" 'helptags '. TPluginFnameEscape(doc)
- exec 'silent! helptags '. TPluginFnameEscape(doc)
+ let cmd = 'silent'
+ let cmd .= g:tplugin#show_helptags_errors ? ' ' : '! '
+ let cmd .= 'helptags '
+ let cmd .= TPluginFnameEscape(doc)
+ " TLogVAR cmd
+ exec cmd
endif
if filereadable(tags)
call add(tagfiles, tags)
View
5 doc/tplugin.txt
@@ -191,6 +191,7 @@ Contents~
g:tplugin#autoload_exclude ......... |g:tplugin#autoload_exclude|
g:tplugin#scan ..................... |g:tplugin#scan|
g:tplugin#shallow_scan ............. |g:tplugin#shallow_scan|
+ g:tplugin#show_helptags_errors ..... |g:tplugin#show_helptags_errors|
tplugin#ScanRoots .................. |tplugin#ScanRoots()|
g:tplugin#vcsdo#script ............. |g:tplugin#vcsdo#script|
g:tplugin#vcsdo#log_buffer ......... |g:tplugin#vcsdo#log_buffer|
@@ -411,6 +412,10 @@ g:tplugin#scan (default: 'cfptham_')
*g:tplugin#shallow_scan*
g:tplugin#shallow_scan (default: 'hm')
+ *g:tplugin#show_helptags_errors*
+g:tplugin#show_helptags_errors (default: 1)
+ If true, show errors when running :helptags.
+
*tplugin#ScanRoots()*
tplugin#ScanRoots(immediate, roots, shallow_roots, args)
Write autoload information for each root directory to
Please sign in to comment.
Something went wrong with that request. Please try again.