Recent file history in Vim?

后端 未结 14 1399
悲&欢浪女
悲&欢浪女 2021-01-29 18:44

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

相关标签:
14条回答
  • 2021-01-29 19:00

    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.

    0 讨论(0)
  • 2021-01-29 19:01

    There is mru.vim, which adds the :MRU command.

    0 讨论(0)
  • 2021-01-29 19:01

    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.

    0 讨论(0)
  • 2021-01-29 19:02

    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/

    0 讨论(0)
  • 2021-01-29 19:06

    Use :bro ol then press the number that corresponds to the file you want to open.

    0 讨论(0)
  • 2021-01-29 19:09

    Also you can go back with ctrl+O.

    0 讨论(0)
提交回复
热议问题