Recent file history in Vim?

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

    As seen in the comments here (http://stackoverflow.com/questions/571955/undo-close-tab-in-vim), your file is probably still open in a buffer:

    :ls " get the buffer number
    :tabnew +Nbuf " where N is the buffer number
    

    For example you can reopen the third buffer in a new tab (use :e instead if you don't use tabs):

    :tabnew +3buf
    

提交回复
热议问题