Last Updated: December 01, 2022
· mattmcla

Delete text inside quotes in VIM

I know I'm late to the party but figured I'd help out any fellow stragglers. I was editing some our unittests and needed to delete the inside of a huge quoted string. Long story short:




Or pretty much "d"elete "i"nside and any character you want to remove text from in-between.

1 Response
Add your response

It's not just "any character", but rather, a supported text object. You can also delete the outer quotes as well by using the text object a"

See :h text-objects for a list of supported text objects.

over 1 year ago ·