retro retro - 5 months ago 17
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.

Answer

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