在 Vim 中查看最近的文档列表 [英] View a list of recent documents in Vim

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

问题描述

有没有办法查看最近在 Vim 中打开的文档列表?我意识到我可以查看光标跳转列表,:ju,然后转到列表中的光标位置,但这并不理想,因为列表中将有同一文档的多个列表.是否有另一个命令可以执行我正在寻找的操作?

Is there a way to view the list of recent documents you've opened in Vim? I realize I could view the cursor jump list, :ju, and then go to a cursor position in the list but this is not ideal because there will be multiple listings of the same document in the list. Is there another command which would do what I'm looking for?

推荐答案

不要使用插件,除非你想要一个漂亮的菜单.来自 Vim 文档:开始(或 :help old):

Don't use a plugin, unless you want a nice menu. From Vim Documentation: Starting (or :help old):

:ol[dfiles]

然后打开列出的文件之一,使用:'0, '1, '2, ... '9

Then to open one of the listed files, use: '0, '1, '2, ... '9

列出在 viminfo 文件中存储有标记的文件.

List the files that have marks stored in the viminfo file.

:bro[wse] ol[dfiles][!]

:oldfiles 一样列出文件名,然后提示输入数字.当编号有效时,列表中的文件将被编辑.使用 ! 放弃修改的缓冲区.

List file names as with :oldfiles, and then prompt for a number. When the number is valid that file from the list is edited. Use ! to abandon a modified buffer.

这篇关于在 Vim 中查看最近的文档列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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