xpho4a
3.513K
· August 2012 ·
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.

Sign in or sign up to add your response.

2 Responses

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 ·
Featured Programming Job

Senior Software Engineer
·
Redwood City, CA
·
Full Time
Search all programming jobs