As every user in this community understands, launching Vim using the command line without using any arguments or flags will edit a blank buffer with the :intro screen.

Some distributions and utilities support opening recent files in their main menu, e.g., LunarVim. I have found no method for achieving the same result using Vim.

Does Vi or VIM support this kind of feature using flags or options?

  • I’m voting to close this question because Google exists.
    – romainl
    Commented Jan 26 at 20:56
  • Do you still have something open in your question? How can we help you further? Otherwise maybe could you accept one of the answers using the v button next to the arrow voting buttons? It allow the question to rest :-) Commented Jan 27 at 22:35
  • Plugin requests are off-topic. Fortunately this one was easily removed. (« This plugin may solve your problem » is a fine answer, though.)
    – D. Ben Knoble
    Commented Jan 28 at 4:48

1 Answer 1


To open the last file edited you can do:

vim -c "'0"

Or after starting Vim hit '0.

More information with :help viminfo-file-marks

But if you are interested by the MRU feature. There are two families of plugins that offers it:

  • The Dashboards
  • The Fuzzy Finders

Browse OldFiles

Vim provide the command:

:browse oldfiles

It list you the files recently opened.

You can then:

  • Scroll the list using the j, k, d, u keys,
  • Quit the list using q

You are then prompted for a file index to open. If you are interested to the last opened file the index to select is 1.


Here is a list of popular "Dashboards"

Here the MRU list of the Startify dashboard: the Startify MRU list

Fuzzy Finders

Here is a list of some popular Fuzzy Finders together with their "MRU" commands:

  • fzf and the :History command
  • CtrlP and the :CtrlPMRUFiles command
  • vim-Clap and the :Clap history command (my favorite on Windows)
  • Telescope and the :Telescope oldfiles command for Neovim only

Here the Clap MRU popup: the Clap MRU popup

  • 1
    Don't forget :oldfiles!
    – Rich
    Commented Feb 6 at 18:35
  • Thanks for the suggestion. I have added to the list. I must admit that these long lists and the selection within the list via an index is not the most intuitive to me ;-) Commented Feb 6 at 19:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.