xpho4a
Last Updated: February 25, 2016
·
3.526K
· avk

VIM : edit inside a HTML Tag

vim

We can edit the text inside a tag by cit (change inside tag)

<li> He | llo </li>

enter cit and now we have

<li> | </li>

Similarly, we can yank and delete inside the tag ( yit and dit )

Note: | is the cursor.

2 Responses
Add your response

18
Oud1 small

also, cat/yat/day works on the entire tag and its content (i.e. as a whole element) starting from the < of the opening tag to the > of the closing tag.

over 1 year ago ·
2686
2d63741c66663e0f8d59b012ca17cdc3

my favorite is guit/gUit to downcase or upcase everything in a tag

over 1 year ago ·