For example, if I want to jump to the close form tag. how could I do this?

link|improve this question

73% accept rate
feedback

1 Answer

up vote 2 down vote accepted

The matchit.vim plugin, in conjunction with the html.vim filetype plugin, will allow you to do this. One way to load the matchit.vim plugin is to put this in your ~/.vimrc:

runtime macros/matchit.vim

If you don't already have filetype plugins enabled, also put this in in your ~/.vimrc:

filetype plugin on

Then when you edit an HTML file, you can jump from a tag to the matching tag by typing %. You can find out more by executing

:help matchit
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.