Vim Recall繁體中文

Show leafs of the undo tree

:undolist

Example

Normal 0 / 3

Show leafs of the undo tree.

Undo history

seq_cur
3
seq_last
3
save_cur
0
save_last
0
synced
1

Command output

Empty
Before & after

Before

Undo history

seq_cur
3
seq_last
3
save_cur
0
save_last
0
synced
1

Command output

Empty

After

Undo history

seq_cur
3
seq_last
3
save_cur
0
save_last
0
synced
1

Command output

number changes  when               saved
     3       3  recent

Start in Normal mode. Separate real changes prepare undo history. Prepared terminal: 80 columns by 24 rows, cmdheight=1 and nomore. Submit the command with the first Enter; output waits at hit-enter. Press the second Enter to acknowledge and return to Normal mode.

Sample buffer
e two
Cursor on line 1, column 1
Details & Vim help

Example replayed in Vim

Show leafs of the undo tree. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. The index spelling :undol[ist] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.