Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runt! html.vim may break other behavior #29

Open
12425 opened this issue Jun 18, 2015 · 0 comments
Open

runt! html.vim may break other behavior #29

12425 opened this issue Jun 18, 2015 · 0 comments

Comments

@12425
Copy link

12425 commented Jun 18, 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:

  1. use so <sfile>:p:h/html.vim instead of runtime in other file types.
  2. wrap everything in html.vim into a function and define autocmd in plugin/.

Thanks.

12425 pushed a commit to 12425/MatchTag that referenced this issue Aug 26, 2015
somini pushed a commit to somini/MatchTag that referenced this issue Mar 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant