retro retro - 9 months ago 38
HTML Question

Vim delete HTML tag, but not content

I have in vim

<p>Hello stackoverflow!</p>

And I want to delete p tag in vim to end with:

Hello stackoverflow!

I know dit command to do opposite. But I can't find how to do this.

I'm using Janus.


With the surround.vim plugin, use dst (for delete surrounding tag). Same with ds(, ds" etc.