Show files that have marks in the viminfo file
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2Show files that have marks in the viminfo file.
v:oldfiles
- 1
/demo/notes.txt- 2
/demo/todo.txt
Vim messages
Empty
Command entered · ready to apply
v:oldfiles
- 1
/demo/notes.txt- 2
/demo/todo.txt
Vim messages
Empty
Lists file names whose marks are stored in viminfo; it does not load the file marks or edit either file.
v:oldfiles
- 1
/demo/notes.txt- 2
/demo/todo.txt
Vim messages
1: /demo/notes.txt 2: /demo/todo.txt
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.
notes
Cursor on line 1, column 1Details & 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.