Vim 中最近的文件历史记录? [英] Recent file history in Vim?

查看:40
本文介绍了Vim 中最近的文件历史记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想访问最近在 GVim 中打开然后关闭的文件.我经常打开和关闭 GVim.我也想访问以前会话中的最新文件.

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 well.

GVim 是否将最近的文件存储在 Word 和许多其他桌面应用程序存储的某处?如何访问它们?

Does GVim store recent files somewhere as Word and many other desktop apps store? How to access them?

推荐答案

至少终端 vim 将前十个文件存储到文件标记部分的 ~/.viminfo 中.您可以使用'0, '1, '2, ... '9 在它们之间跳转.

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.

(可能只对 '0 返回到您正在编辑的最后一个文件有用,除非您的记忆力比我的强.)

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

您也可以使用 :browse oldfiles 命令来获取带有数字的菜单.

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

这篇关于Vim 中最近的文件历史记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆