Checkpoint: organize a handoff
The technique
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.