tags:

views:

67

answers:

2

I'm having a difficult time to find an opening div in deeply nested HTML that has been poorly written. Is there a plugin out there that will give me support to jump to the equivalent open/closing div using vim/gvim/macvim and other variants?

A: 

Try xmledit. Works for XML, HTML, and SGML.

JSBangs
+4  A: 

I use matchit.vim. I land on the tag and just hit % and it jumps.

meder
I have matchit.vim enabled, but it doesn't want to match div tags.. perhaps I'm doing something stupid.
randombits
Did you do :set ft=html or whatever for your html files? What does :set ft? give you
meder
did you read the matchit.vim page?
meder
:set ft gives me filetype html
randombits
also, my file doesn't end in .html, it's foo.html.erb.. not sure if that makes a difference.
randombits