Skip to content
Vim
Learn/

Delete Inside Quotes

32 / 51

Text Objects · Quotes

Delete Inside Quotes

Clear string contents while preserving quote marks.

A quote object uses the matching pair on the current line. The inner form leaves an empty string ready for another operation.

Use di", di', and di` in the editor beside this lesson. Practice is where you learn it, with the answer a click away; the Test is graded, unaided, and the only thing that marks this lesson complete.

Keys in this lesson

di"
Delete inside the double quotes, keeping the marks
di'
Delete inside the single quotes, keeping the marks
di`
Delete inside the backticks, keeping the marks
All 91 keys →

Practice to learn it. Test to prove it.

Practice keeps the answer a click away — endlessly in Free, or as a 15-goal run against par and your own best time in Timed. The Test gives you 8 goals with no hints and a keystroke budget on each; passing it is what marks this lesson complete.

di"

Delete the text inside the double quotes.