From 79705c3fcc08d667c28de72287faa730a3ac8341 Mon Sep 17 00:00:00 2001 From: Matthias Bilger Date: Wed, 30 Jul 2014 13:34:15 +0200 Subject: [PATCH] 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. --- syntax/snippets.vim | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/syntax/snippets.vim b/syntax/snippets.vim index 19a9da1..b722d4d 100644 --- a/syntax/snippets.vim +++ b/syntax/snippets.vim @@ -16,12 +16,16 @@ endif " Embedded Syntaxes {{{1 -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 +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