Suppose I have:
<div id="help">
<table>
...
...
...
</table>
</div>
How do I select the whole block, starting from <div id="help">
?
selectionvim
Suppose I have:
<div id="help">
<table>
...
...
...
</table>
</div>
How do I select the whole block, starting from <div id="help">
?
Best Answer
vat
, as in Heptite's answer is the way to go.Note that, depending on where the cursor is, you may need to type
at
a few more times until the whole<div>
is selected.Supposing the cursor is in a
<td>
you'd needvatatatat
to select the whole<div>
:Another option would be to search backward for
di
(v
) orhe
(lp
) and select the whole tag withvat
: