Is there a way to view the list of recent documents you've opened in Vim?
I realize I could view the cursor jump list, :ju
, and then go to a cursor position in the list but this is not ideal because there will be multiple listings of the same document in the list.
Is there another command which would do what I'm looking for?
Don't use a plugin, unless you want a nice menu. From Vim Documentation: Starting (or :help old
):
:ol[dfiles]
Then to open one of the listed files, use: '0
, '1
, '2
, ... '9
List the files that have marks stored in the viminfo
file.
:bro[wse] ol[dfiles][!]
List file names as with :oldfiles
, and then prompt for a number. When the number is valid that file from the list is edited. Use !
to abandon a modified buffer.