You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not safe to source html.vim for other file types.
For example,
In my ftplugin/ I have html.vim and xml.vim
html.vim: map a b
xml.vim: map a c
Without MatchTag, I can get right mapping (a->c) in xml, however with MatchTag, I get a->b for xml files, because html.vim is loaded after xml.vim.
We may have 2 solutions:
use so <sfile>:p:h/html.vim instead of runtime in other file types.
wrap everything in html.vim into a function and define autocmd in plugin/.
Thanks.
The text was updated successfully, but these errors were encountered:
12425
pushed a commit
to 12425/MatchTag
that referenced
this issue
Aug 26, 2015
It is not safe to source html.vim for other file types.
For example,
In my ftplugin/ I have html.vim and xml.vim
html.vim:
map a b
xml.vim:
map a c
Without MatchTag, I can get right mapping (a->c) in xml, however with MatchTag, I get a->b for xml files, because html.vim is loaded after xml.vim.
We may have 2 solutions:
so <sfile>:p:h/html.vim
instead ofruntime
in other file types.autocmd
in plugin/.Thanks.
The text was updated successfully, but these errors were encountered: