tags:

views:

74

answers:

1

I need a Vim script to highlight end of a tag when cursor is at the beginning of the tag.

For example in html tags, when cursor is in start of tag, it should highlight the end of the tag.

The interface should be generic, so that more tags can be added

+1  A: 

If you replace your html.vim file with this one, you'll get the html tag matching plus some extra stuff. Or you can use matchit which is more general purpose.

Pierre-Antoine LaFayette
I tried html.vim first on html file but tag matching highlighting doesnt seem to work? any ideas?
Sashi
You're right, I don't think these do the highlighting. However if you press % over a tag it will jump to the match. You could probably edit the script to highlight the match, but that's if you want it bad enough to do some work...
Pierre-Antoine LaFayette