Do not load whole syntax file for a buffer twice.

Load twice only regexes for a concrete syntax.
This commit is contained in:
Maxim Kim
2013-07-18 09:55:24 +04:00
parent 79b78dc9ee
commit 58e072fa92
6 changed files with 27 additions and 14 deletions

View File

@ -7,7 +7,8 @@ if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1 " Don't load another plugin for this buffer
execute 'runtime! syntax/vimwiki.vim'
call vimwiki#u#reload_regexes()
" UNDO list {{{
" Reset the following options to undo this plugin.