在 vim 模糊查找器中选择文件而不使用箭头键?
我最近发现了 vim 的 fuzzyfinder 插件。它的 CoverageFile 功能非常完美,但有一个棘手的细节。
它将列出文件,我知道选择其中一个文件的唯一方法是将我的手移至箭头键并“向下键”到文件,然后按 。
菜单中的条目旁边有一个数字,这让我相信有一个打开文件的快捷方式。问题是,我真的找不到有关它的文档。我仔细研究了 fuzzyfinder 的一些文档,但它们只描述了如何以各种方式打开所选项目(split、vsplit、tab 等),而不是如何实际选择该项目。
有谁知道该怎么做?
I recently discovered the fuzzyfinder plugin for vim. It's CoverageFile functionality is perfect, with one niggling detail.
It will list the files, and the only way I know of to select one of them is to move my hand over to the arrow keys and "key down" to the file and then press .
The entries in the menu have a number beside them, which leads me to believe there's a shortcut for opening the file. The problem is, I can't really find documentation on it. I've pored over some of the docs for fuzzyfinder, but they only describe how to open the selected item in various ways (split, vsplit, tab, etc), not how to actually select the item.
Does anyone know how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我找到了,它是 Control-N/Control-P,很有道理 :) – Fred 10 月 27 日 17:25
I found it, it's Control-N/Control-P, makes sense :) – Fred Oct 27 at 17:25
您也可以键入文件的名称。这将像增量搜索一样工作,缩短模糊查找器文件列表,直到找到唯一的匹配项。
文件名旁边的数字是缓冲区编号,因此例如输入
:buffer 23
将打开缓冲区 23。You can type out the name of the file as well. This will work like and incremental search, shortening the fuzzyfinder file list until a unique match is found.
The number next to the file name is the buffer number so for example typing
:buffer 23
will open buffer 23.