Ignore Errors E403 from included syntax files

This will silently discard Errors raised by syntax files that
are not designed to be included more than once.
This commit is contained in:
Matthias Bilger 2014-07-30 13:34:15 +02:00
parent 4dcfca755b
commit 79705c3fcc

View File

@ -16,12 +16,16 @@ endif
" Embedded Syntaxes {{{1 " Embedded Syntaxes {{{1
syntax include @Python syntax/python.vim try
unlet b:current_syntax syntax include @Python syntax/python.vim
syntax include @Viml syntax/vim.vim unlet b:current_syntax
unlet b:current_syntax syntax include @Viml syntax/vim.vim
syntax include @Shell syntax/sh.vim unlet b:current_syntax
unlet b:current_syntax syntax include @Shell syntax/sh.vim
unlet b:current_syntax
catch /E403/
" Ignore errors about syntax files that can't be loaded more than once
endtry
" Syntax definitions {{{1 " Syntax definitions {{{1