Manipulate HTML Tags With Vim

Imagine my mirth when I discovered these three jewels.

dit: ‘delete in tag’

cit: ‘change in tag’

yitvatp (deletes immediately surrounding HTML tags) which breaks down to:

  • y - yank
  • it - inside tag
  • vat - visual mode + entire tag
  • p - pastes the yank

and also, this: yiw, move to next word, viwp: replaces 1st word with 2nd word! :D FUCKING AWESOMENESS GALORE

:D :D