vimtricks.wiki Concise Vim tricks, one at a time.

How do you select text inside HTML/XML tags?

Answer

vit

Explanation

Press vit to select the inner content of the nearest HTML/XML tag. Use vat to include the tags themselves.

Next

How do I visually select a double-quoted string including the quotes themselves?