Checkpoint: publish selected updates

0 of 3

The technique

Your textVim mode: Normal
Copy the item line, then mark both items ready. Keep the archive. Before: Item: draft / Archive: draft. After: Item: ready / Item: ready / Archive: draft.

ww passes the colon, which counts as a word of its own. The dot repeats ciw on the line above.

Keys in this lesson

yy
Copy the line.
p
Put after the cursor, or below the line.
ciw
Change the word under the cursor.
.
Repeat the last change.

Before this lesson: Copying; registers; selective repetition.

More about this lesson

Copy useful text and update current records without changing history.

Choose your own route. The target is a specification, not a hint. Preserve the historical quotation exactly; a matching word in the archive is not a request to replace it. Help remains available and its use is recorded for this attempt.

Example

Identify the copied region and the protected exception before editing. Compare the complete result afterwards.

Try without hints first. Open help if you need it.

Guides on this topic

Exercise 1 of 3

0keys

par 28

Duplicate the review heading immediately below itself, update the two current values to ready, and preserve the pending archive exactly. Choose your tools.

Your textVim mode: Normal

Desired result

// Review note
// Review note
const first = "ready";
const archive = "pending";
const second = "ready";

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
Reset the exercise
Ctrl+Alt+P
Previous exercise
Ctrl+Alt+N
Next exercise
Enter
After a solve: the next step

Ctrl+Alt shortcuts leave Vim's own keys alone. On a Mac, Control and Option.