Skip to content

Commit 825230a

Browse files
committed
Bug fix for issue #68 (silence E403)
See issue #68 on GitHub: #68
1 parent c6c76db commit 825230a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

autoload/xolox/notes.vim

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
" Vim auto-load script
22
" Author: Peter Odding <peter@peterodding.com>
3-
" Last Change: June 17, 2014
3+
" Last Change: June 18, 2014
44
" URL: http://peterodding.com/code/vim/notes/
55

66
" Note: This file is encoded in UTF-8 including a byte order mark so
77
" that Vim loads the script using the right encoding transparently.
88

9-
let g:xolox#notes#version = '0.23.7'
9+
let g:xolox#notes#version = '0.23.8'
1010
let g:xolox#notes#url_pattern = '\<\(mailto:\|javascript:\|\w\{3,}://\)\(\S*\w\)\+/\?'
1111
let s:scriptdir = expand('<sfile>:p:h')
1212

@@ -1134,6 +1134,9 @@ function! s:syntax_include(filetype)
11341134
try
11351135
execute 'syntax include' grouplistname 'syntax/' . a:filetype . '.vim'
11361136
execute 'syntax include' grouplistname 'after/syntax/' . a:filetype . '.vim'
1137+
catch /E403/
1138+
" Ignore errors about syntax scripts that can't be loaded more than once.
1139+
" See also: https://github.com/xolox/vim-notes/issues/68
11371140
catch /E484/
11381141
" Ignore missing scripts.
11391142
endtry

0 commit comments

Comments
 (0)