Mission 35 / 52• Text Objects - Quotes

Change Inside Quotes

`ci"` deletes the inside of a string and immediately puts you in insert mode with the cursor between the quotes.

Change inside quotes

  • ci"change inside double quotes and enter insert mode
  • ci'change inside single quotes and enter insert mode
1
const theme = "dark";
2
const status = "pending";

Anywhere inside `"pending"`, type `ci"`, type `success`, then hit `esc`.

Now it's your turn!

0 / 4 tasks complete0.0s / 23s par0 / 36 par

Practice this lesson's commands. Each task checks your technique and the result, not just your cursor position. Take your time.

Task 1: Change dark to light inside double quotes with ci". Return to normal mode.

Expected result
const theme = "light";
Show hint

Use ci", type light, then Escape.

1
const theme = "dark";
jkscroll•ggGtop/bottom•Tabnext example•Enterstart•qstop•Ctrl+kCtrl+jprev/next