Vim Recall繁體中文

Show files that have marks in the viminfo file

:oldfiles

Example

Normal 0 / 2

Show files that have marks in the viminfo file.

v:oldfiles

1
/demo/notes.txt
2
/demo/todo.txt

Vim messages

Empty
Before & after

Before

v:oldfiles

1
/demo/notes.txt
2
/demo/todo.txt

Vim messages

Empty

After

v:oldfiles

1
/demo/notes.txt
2
/demo/todo.txt

Vim messages

1: /demo/notes.txt
2: /demo/todo.txt

Subject: :oldfiles. Documentation-backed illustration; assumes +eval and +viminfo; the declared v:oldfiles filename list was loaded at startup, not the file marks; an ordinary interactive session with cmdheight=4, at least 80 columns and no pending or scrolled messages/prompt leaves space for both listed rows; not replay-verified. Lists file names whose marks are stored in viminfo; it does not load the file marks or edit either file.

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

Show files that have marks in the viminfo 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 :ol[dfiles] 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.