I’ve asked a related question here: Show unmatched html tags in Notepad++
Having only begun to use vim, I love it. I love the fact that I can launch a file in vim and exclusively use the keyboard for editing it. And, it’s so quick and easy to do it once you get the hang of it…
Aside from all that, I’m wondering if there’s a way to highlight unmatched html tags in vim. I’ve searched SOF and also looked around the web, but I’m either not searching hard enough or nobody’s posted how to do this or the ability to search for unmatched html tags in vim doesn’t exist.
I’d like to focus on html tags in particular, but I’d also like to say that I’m looking for a way to show ANY unmatched tags in a document (tags being in the form of "<SOME_TAG_NAME></SOME_TAG_NAME>").
Even if I could be pointed to a good tutorial on creating plugins for vim that would be helpful. I would have made a plugin for notepad++ myself, but it requires the use of Visual Studio which I don’t have. I use open source technologies (particularly Java) for my development. I’m assuming and hoping that vim doesn’t require Visual Studio to write a plugin…
Try syntastic. When you run :SyntasticCheck or when you write, it will run a syntax check on the html and flag the unmatched tags.
Note: You will need htmltidy.
Also note, on gvim win32, you may need to edit syntastic’s syntax_checkers\html.vim as mentioned here.