htmlvim

how to highlight entire <DIV> </DIV> in Vim?


I am using the latest Vim in Ubuntu and Vimrc by Vincent Driessen of nvie.com. How do I highlight the entire section between matching pair of div and /div? The DIV tag on the same line is highlighted when I am on < of the DIV tag, but I want to highlight the entire section, to see if divs are matched all over the page, one by one.


Solution

  • Move to the starting <div> tag, then hit vat.