Recent file history in Vim?

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

    :ls to list recent files with buffer number on left-hand column.

    Then do :b{buffer-number} to jump there.

    Example: :ls shows list of files. I want to jump to third-last file I visited. :b3 will take me there.

    For faster searching, map :ls to something, e.g. . in your .vimrc file.

提交回复
热议问题