Recent file history in Vim?

后端 未结 14 1442
悲&欢浪女
悲&欢浪女 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:13

    At least terminal vim stores the previous ten files into ~/.viminfo in the filemarks section. You can use '0, '1, '2, ... '9 to jump among them.

    (Probably only useful for '0 to get back to the last file you were editing, unless your memory is stronger than mine.)

    You can also use the :browse oldfiles command to get a menu with numbers.

提交回复
热议问题