Read punctuation as word or WORD

0 of 3

The technique

Your textVim mode: Normal
Jump from notes.md to now. Before: open notes.md now. After: open notes.md now.

w would stop at the dot in notes.md. W only stops after a space, so it reaches now.

Keys in this lesson

W
Next WORD. It skips punctuation and stops after spaces.
E
End of the WORD.
B
Back to the start of a WORD.

Before this lesson: Choose a word destination.

More about this lesson

Move by whole chunks of text between spaces, even when they contain punctuation.

W, E and B move by WORDs, which are runs of text without spaces. They skip over any punctuation inside the run. They don't know what a URL, a file name or a quote is, so a space inside quotes still starts a new WORD.

Example

In “open notes.md now”, w from n stops at the dot, but W reaches now. E from n reaches d at the end of notes.md. B moves back to the start of the previous WORD, or to the start of the current one if you're in the middle of it.

Use Start over to try again.

Guides on this topic

Exercise 1 of 3

0keys

par 1

Put the cursor on --out.

Your textVim mode: Normal

Move the cursor here

7  run("node scripts/build-sitemap.mjs --out dist/sitemap.xml");

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.