Skip to content
Vim Learn
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. The challenge proves it once; Practice is a timed run against the clock.

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 against the clock.

The challenge proves completion once. Practice is a timed run of 15 goals — beat par, then beat your own best time. Every completed goal saves locally.

di`

Delete the text inside the backticks.