Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Vim'中显示固定数量的条目;让我们浏览旧文件_Vim - Fatal编程技术网

如何在Vim'中显示固定数量的条目;让我们浏览旧文件

如何在Vim'中显示固定数量的条目;让我们浏览旧文件,vim,Vim,我是Vim的新手。我发现浏览旧文件时会显示几个条目(70个最近打开的文件)。是否有某种方法可以控制我想在“浏览旧文件”列表中查看的文件数 我确实查看了Vim的帮助,但没有提到如何控制条目的数量 :ol[dfiles] List the files that have marks stored in the viminfo file. This list is read on startup and only changes afterwa

我是Vim的新手。我发现浏览旧文件时会显示几个条目(70个最近打开的文件)。是否有某种方法可以控制我想在“浏览旧文件”列表中查看的文件数

我确实查看了Vim的帮助,但没有提到如何控制条目的数量

:ol[dfiles]     List the files that have marks stored in the viminfo
            file.  This list is read on startup and only changes
            afterwards with ":rviminfo!".  Also see |v:oldfiles|.
            The number can be used with |c_#<|.
            {not in Vi, only when compiled with the |+eval|
            feature}

: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}
:ol[dfiles]列出在viminfo中存储有标记的文件
文件此列表在启动时读取,仅更改
之后使用“:rviminfo!”。另请参见| v:oldfiles |。

通过设置
viminfo
,该数字可与| c#一起使用。例如,设置以前编辑过的文件的最大数量,比如70个

set viminfo='70

更多信息。

我刚刚得到一个好的解决方案

我们可以删节

    :bro filter /tips/ ol

这样,您的列表将只显示名称上带有“提示”的文件。

谢谢。我错过了帮助中的viminfo部分。
    :bro filter /tips/ ol