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:
di'
or
di"
Or pretty much "d"elete "i"nside and any character you want to remove text from in-between.
Written by Matt
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#