Checkpoint: words and strings in real files

0 of 3

The technique

Your textVim mode: Normal
Rename the owner, change the note and remove morning. Before: Owner: Dana / Note: "Ready soon" / Ships on Friday morning.. After: Owner: Ines / Note: "Packed and waiting" / Ships on Friday..

j moves straight down into the quoted note. Before the full stop there's no space after morning, so daw takes the space before it.

Keys in this lesson

ciw
Change the word under the cursor.
ci"
Change the text inside double quotes.
daw
Delete the word and one space.
More about this lesson

Make three changes in each of three real files.

Do Edit a whole word and Keep the quotation first. Each file needs a word changed, a quoted string changed and a word removed with its space. The target shows what should change, and you choose the commands.

Try without hints first. Help is there if you need it, and the feedback shows which techniques you used.

For more practice, try another file or do this checkpoint again in a different language.

Guides on this topic

Exercise 1 of 3

0keys

par 31

Get the package ready for release. Rename it to northwind-pwa, remove new from the description, and lint app instead of src, where the code lives now. You can use any commands.

Your textVim mode: Normal

Make it look like this

{
  "name": "northwind-pwa",
  "description": "The storefront for Northwind Trading",
  "version": "2.1.0",
  "private": true,
  "scripts": {
    "dev": "vite",
    "build": "vite build",
    "lint": "eslint app tests"
  }
}

Yours

Par

Keyboard shortcuts
Ctrl+Enter
Check the result
Ctrl+Alt+U
Undo the last change
Ctrl+Alt+H
Show the next hint
Ctrl+Alt+R
Start the exercise over
Ctrl+Alt+P
Previous exercise
Ctrl+Alt+N
Next exercise
Ctrl+Alt+K⌃⌥K
Show the keyboard shortcuts
Ctrl+Alt+F⌃⌥F
Turn focus mode on or off
Ctrl+Alt+S⌃⌥S
Open the editor settings
Enter
Go on to the next step after you finish

The Ctrl+Alt shortcuts don't clash with Vim's own keys. On a Mac, use Control and Option.