Vim Recall繁體中文

Redo an undone change

Ctrl-r

Example

Normal 0 / 1
one two
Cursor on line 1, column 1

Reapply a change undone by u.

Before & after
Before
one two
Cursor on line 1, column 1
After
ne two
Cursor on line 1, column 1

Start in Normal mode. Before is prepared by deleting the first character with x and undoing it with u.

Details & Vim help

Example replayed in Vim

Reapply a change undone by u.

Normal-mode Ctrl-r moves forward through undo history. It differs from Ctrl-r in Insert or Command-line mode, where that key starts inserting a register.