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

Already on GitHub? Sign in to your account

xml syntax/indenting isn't loaded #4

Closed
davetron5000 opened this Issue Feb 6, 2011 · 2 comments

Comments

Projects
None yet
2 participants

Despite this line being in ftplugin/pml.vim:

runtime! syntax/xml.vim

I get no syntax highlighting. If I add this to my .vimrc:

au BufEnter *.pml runtime syntax/xml.vim

it works.

Similarly, I must add

au BufEnter *.pml runtime indent/xml.vim

to get indenting to work.

I setup my vim from scratch using pathogen, with these plugins:

  • Command-T/
  • scala-vim-support/
  • snipmate.vim/
  • textile.vim/
  • vim-bufexplorer/
  • vim-cucumber/
  • vim-git/
  • vim-haml/
  • vim-markdown/
  • vim-matchit/
  • vim-pml/
  • vim-ruby/
  • vim-taglist/
  • vim-xml-autons/
Owner

nelstrom commented Feb 6, 2011

Thanks for reporting this. I've been able to reproduce the behaviour that you describe sporadically. I'll look further into it.

tswicegood added a commit to tswicegood/vim-pml that referenced this issue Jun 26, 2011

Taking a stab at fixing (monkey patching at least) issue #4
This bugs me to know end and is always present in my MacVim 7.3 setup.
I don't think there's a downside to calling it again in the instances
where it works.
Owner

nelstrom commented Jun 26, 2011

My apologies for neglecting this. There are actually two separate issues here: the syntax is not being loaded, and the indentation is not being loaded.

Although the commit message suggests that I was actually tackling another issue at the time, I think that this commit should have fixed the issue with syntax loading.

This patch from @tswicegood should fix the remaining issue with the xml indentation. It turns out that the reason I wasn't able to reproduce the issue was because another plugin was enabling XML indentation for me. When I disabled the ragtag plugin, I experienced the same issue.

@davetron5000: could you try updating to the latest version of pml.vim and removing these lines from your vimrc:

au BufEnter *.pml runtime syntax/xml.vim
au BufEnter *.pml runtime indent/xml.vim

If this issue has been resolved, you shouldn't need them.

@nelstrom nelstrom closed this Jun 26, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment