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
try
syntax include @Python syntax/python.vim
unlet b:current_syntax
syntax include @Viml syntax/vim.vim
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