Permalink
Browse files

Bug fix for issue #68 (silence E403)

See issue #68 on GitHub:
  #68
  • Loading branch information...
1 parent c6c76db commit 825230ab7fdec7de83a036c18daec0621cfd67d3 @xolox committed Jun 17, 2014
Showing with 5 additions and 2 deletions.
  1. +5 −2 autoload/xolox/notes.vim
@@ -1,12 +1,12 @@
" Vim auto-load script
" Author: Peter Odding <peter@peterodding.com>
-" 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('<sfile>: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

0 comments on commit 825230a

Please sign in to comment.