Vim Recall繁體中文

Load undo information from a file

:rundo

Example

Normal 0 / 2

Load undo information from a file.

Undo history

Current text
blue
Available undo
none
Before & after

Before

Undo history

Current text
blue
Available undo
none

After

Undo history

Current text
blue
Available undo
red

Subject: :rundo. Documentation-backed illustration; assumes +persistent_undo, readable valid undo file whose text hash matches current blue buffer; not replay-verified. Loads matching saved undo history; text remains blue until an undo command is issued.

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

Load undo information from a file. 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 :rund[o] 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.