Use vim to delete everything in a paragraph

Viewed 57

I want to use vim to delete everything inside of a paragraph tag. Is there a way? (d i p) does not work like di " does or di>. I have tried everything but I do no see anything online for this.

1 Answers

To borrow an answer from here, you can use vit

  • v = visual select
  • i = inside
  • t = tag

And see also :help v_it

And of course you can change the action from v to d to delete instead of select, or my favorite, c to replace it (deletes it and enters insert mode so you can type something else).

Related