retro retro - 1 year ago 76
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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download