Checkpoint: organize a handoff

0 of 3

The technique

Your textVim mode: Normal
Swap the first two lines, then label both. Keep the archive. Before: second / first / archive. After: first [ready] / second [ready] / archive.

dd then p moves a line down by one. gg returns to the top before the labels.

Keys in this lesson

dd
Delete the line.
p
Put after the cursor, or below the line.
A
Insert at the end of the line.
.
Repeat the last change.

Before this lesson: Visual selection; macros; line movement.

More about this lesson

Reorder and label a document while preserving its protected section.

This mixed checkpoint has several valid approaches: line moves, Visual selection, repeated edits or a small macro. Match the result and keep the archive. Efficiency comparisons are optional; correctness comes first.

Example

Check the order, labels and unchanged archive separately before finishing in Normal mode.

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

Guides on this topic

Exercise 1 of 3

0keys

par 35

Order the steps Prepare, Review, Publish; append the ready marker to each. Preserve the archive exactly. Choose your tools.

Your textVim mode: Normal

Desired result

// Prepare [ready]
// Review [ready]
// Publish [ready]
const archive = "pending";

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.