Walking the Numbered Registers

"1p, then u and . to walk the cut-history backwards.

Keys: ", 1, p, u, .

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.

Walk the cut history
KeyNote
"1pPaste the most recent cut
uUndo it
.Repeat β€” but the dot bumps to register 2 next
uUndo
.Bumps to register 3
...…all the way to register 9

Watch

See also: Numbered Registers, The Unnamed Register