Walking the Numbered Registers
"1p, then u and . to walk the cut-history backwards.
After a deletion, "1p pastes the most recent cut. Press u then . β Vim undoes and pastes from the next-older numbered register. Walks all 9 cuts.
A delightful Vim quirk: the numbered registers (1-9) hold the last 9 things you cut. Combine with undo + dot, and you can browse your cut history one keypress at a time.
| Key | Note |
|---|---|
| "1p | Paste the most recent cut |
| u | Undo it |
| . | Repeat β but the dot bumps to register 2 next |
| u | Undo |
| . | Bumps to register 3 |
| ... | β¦all the way to register 9 |
Watch
- πΊ #0471 g Ctrl-A / g Ctrl-X β Sequences (not yet published)
- πΊ #0472 Align Text with :norm (not yet published)
See also: Numbered Registers, The Unnamed Register