Mission 33 / 52• Text Objects - Quotes
Delete Inside Quotes
Strings are everywhere. Instead of manually moving inside quotes and backspacing, `di"` empties the string in one stroke.
Delete inside quotes
- di"delete inside double quotes (leaves empty "")
- di'delete inside single quotes (leaves empty '')
Press Enter to start
1const title = "Welcome to our application!";2const query = 'SELECT * FROM users';Position cursor inside the title string and type `di"`. You are left with `const title = "";`.
Now it's your turn!
0 / 4 tasks complete0.0s / 17s par0 / 18 par
Practice this lesson's commands. Each task checks your technique and the result, not just your cursor position. Take your time.
Task 1: Clear the URL string with di" while keeping double quotes.
Expected result
const url = "";
Show hint
Use di" inside the URL.
Press Enter to start
1const url = "https://vim.dev";jkscroll•ggGtop/bottom•Tabnext example•Enterstart•qstop•Ctrl+kCtrl+jprev/next