Люблю ответ Рэнди (+1), и я только что узнал о блоках тегов!Это просто дополнительный ответ.
Таким образом, yit означает «блок внутреннего тега yank», а vat означает «перейти в визуальный режим и выбрать a (весь) блок тега».
Это только для тех,которые лень читать файл справки:
Tag blocks *tag-blocks*
For the "it" and "at" text objects an attempt is done to select blocks between
matching tags for HTML and XML. But since these are not completely compatible
there are a few restrictions.
The normal method is to select a <tag> until the matching </tag>. For "at"
the tags are included, for "it" they are excluded. But when "it" is repeated
the tags will be included (otherwise nothing would change). Also, "it" used
on a tag block with no contents will select the leading tag.
"<aaa/>" items are skipped. Case is ignored, also for XML where case does
matter.
In HTML it is possible to have a tag like <br> or <meta ...> without a
matching end tag. These are ignored.
The text objects are tolerant about mistakes. Stray end tags are ignored.