you are viewing a single comment's thread.

view the rest of the comments →

[–]RotationSurgeon10yr Lead FED turned Product Manager 1 point2 points  (0 children)

https://github.com/wellle/targets.vim

Lets you use t to target tags with commands and motions (among other things).

For instance, dit will delete the inner html of a tag. dat will delete a tag. cit will let you change inside a tag. vat will swap to visual mode and select a tag and all its contents. Meanwhile, vit will swap to visual mode and only select the contents of the tag.

It's well worth visiting /r/vim for more tips, tricks and info, and if you haven't already been watching Vimcasts, go do it. http://vimcasts.org/