I would like to access recent files that I had opened and then closed in GVim. I open and close GVim frequently. I would like to access recent files from previous sessions as we
One more plugin that let's you choose file from the list of last modified ones is staritfy. It replaces your start screen with a list of most recently modified files. You can always open this page later using :Startify
command.
There is mru.vim, which adds the :MRU
command.
There is an Swiss knife of file switching CtrlP plugin, which is also part of janus distributive. It has :CtrlPMRU
command with smart lookup among recently used files.
Note:
CtrlP
maintains its own list of most recent used files in g:ctrlp_cache_dir."mru/cache.txt"
. It is not reusing viminfo (set viminfo?
) which contains a list of file marks. This is useful if you want to clear this list.
MRU has lot of features as explained here: http://www.thegeekstuff.com/2009/08/vim-editor-how-to-setup-most-recently-used-documents-features-using-mru-plugin/
Use :bro ol
then press the number that corresponds to the file you want to open.
Also you can go back with ctrl+O.