How can I easily delete blocks of text surrounded by HTML tags?
Say I come across a block of text that is surrounded by <div> tags. How can I easily delete everything within the tags, and the tags themselves, all at once?
Text objects are your friends...
dat : "delete around tag"dit : "delete inside tag"There are also similar operations for changing the text (cat and cit) and selecting it visually (vat and vit).
Have fun!
When in the <div>, say, you can do dat
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With