From 825230ab7fdec7de83a036c18daec0621cfd67d3 Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Wed, 18 Jun 2014 00:06:35 +0200 Subject: [PATCH] Bug fix for issue #68 (silence E403) See issue #68 on GitHub: https://github.com/xolox/vim-notes/issues/68 --- autoload/xolox/notes.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/autoload/xolox/notes.vim b/autoload/xolox/notes.vim index 0ad3ef9..315bf50 100644 --- a/autoload/xolox/notes.vim +++ b/autoload/xolox/notes.vim @@ -1,12 +1,12 @@ " Vim auto-load script " Author: Peter Odding -" Last Change: June 17, 2014 +" Last Change: June 18, 2014 " URL: http://peterodding.com/code/vim/notes/ " Note: This file is encoded in UTF-8 including a byte order mark so " that Vim loads the script using the right encoding transparently. -let g:xolox#notes#version = '0.23.7' +let g:xolox#notes#version = '0.23.8' let g:xolox#notes#url_pattern = '\<\(mailto:\|javascript:\|\w\{3,}://\)\(\S*\w\)\+/\?' let s:scriptdir = expand(':p:h') @@ -1134,6 +1134,9 @@ function! s:syntax_include(filetype) try execute 'syntax include' grouplistname 'syntax/' . a:filetype . '.vim' execute 'syntax include' grouplistname 'after/syntax/' . a:filetype . '.vim' + catch /E403/ + " Ignore errors about syntax scripts that can't be loaded more than once. + " See also: https://github.com/xolox/vim-notes/issues/68 catch /E484/ " Ignore missing scripts. endtry