如何在 vim 中打开旧文件列表中的文件? [英] How do I open files from my oldfiles list in vim?
本文介绍了如何在 vim 中打开旧文件列表中的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 vim 中,我可以输入 :oldfiles
来查看我之前编辑过的文件列表.很棒的功能!
In vim, I can type :oldfiles
to see a list of files I've previously edited. Awesome feature!
但现在我想将列表中的一个或多个文件打开到缓冲区中.我该怎么做?
But now I want to open one or more files from that list into a buffer. How can I do that?
推荐答案
如果你使用 :help oldfiles
,你会发现命令 :browse oldfiles
应该做什么你想要.
If you use :help oldfiles
, you will find the command :browse oldfiles
which should do what you want.
:bro[wse] ol[dfiles][!]
List file names as with |:oldfiles|, and then prompt
for a number. When the number is valid that file from
the list is edited.
If you get the |press-enter| prompt you can press "q"
and still get the prompt to enter a file number.
Use ! to abandon a modified buffer. |abandon|
{not when compiled with tiny or small features}
这篇关于如何在 vim 中打开旧文件列表中的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文