Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Autoload: Ignore E121 errors (local variables) and echo v:exception o…

…n errors
  • Loading branch information...
commit f7cc0c218a08aa5c3d4c3a7deb6154bd219f1182 1 parent 59387eb
@tomtom authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 macros/tplugin.vim
View
8 macros/tplugin.vim
@@ -4,8 +4,8 @@
" @GIT: http://github.com/tomtom/tplugin_vim/
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2010-01-04.
-" @Last Change: 2012-02-23.
-" @Revision: 1950
+" @Last Change: 2012-09-19.
+" @Revision: 1954
" GetLatestVimScripts: 2917 1 :AutoInstall: tplugin.vim
if &cp || exists("loaded_tplugin")
@@ -293,8 +293,12 @@ function! s:Autoload(type, def, bang, range, args) "{{{3
exec range . cmd . a:bang .' '. a:args
catch /^Vim\%((\a\+)\)\=:E481/
exec cmd . a:bang .' '. a:args
+ catch /^Vim\%((\a\+)\)\=:E121/
+ " Ignore exception: was probably caused by a local variable
+ " that isn't visible in this context.
catch
echohl Error
+ echom "Exception" v:exception "from" v:throwpoint
echom v:errmsg
echohl NONE
endtry
Please sign in to comment.
Something went wrong with that request. Please try again.