简体   繁体   English

是否有类似于fuzzyfinder_textmate和Command-T的Vim插件,它不需要Ruby支持?

[英]Is there a Vim plug-in similar to fuzzyfinder_textmate and Command-T which does _not_ require Ruby support?

Both of these plugins require Vim to be compiled with Ruby support, need to be compiled themselves using the same version of Ruby, etc. Is there a plugin which does the same job, but doesn't require installation other than dropping it into vimfiles directory? 这两个插件都需要使用Ruby支持编译Vim,需要使用相同版本的Ruby编译自己,等等。是否有一个插件可以执行相同的工作,但除了将其放入vimfiles目录之外不需要安装?

UPDATE: These plugins allow to open files/buffers by typing characters which appear in their path, not necessarily in a row. 更新:这些插件允许通过键入出现在其路径中的字符来打开文件/缓冲区,而不一定是连续的。 Ie if your directory has files 即如果您的目录有文件

foo/bar.txt
foo/baz.vim
zee.c

you can type 你可以输入

,t f

and only two matching files are shown; 并且只显示两个匹配的文件; after you add r , only one file is left and it can be opened by pressing <Return> . 添加r ,只剩下一个文件,可以通过按<Return>打开它。

Using the latest fuzzyfinder vim plugin you can use 使用最新的fuzzyfinder vim插件即可使用

:FufCoverageFile :FufCoverageFile

to mimic the global search features of fuzzyfinder_textmate and Command-T. 模仿fuzzyfinder_textmate和Command-T的全局搜索功能。 No ruby needed. 不需要红宝石。

Need also to have vim >= 7.2 还需要vim> = 7.2

I used LustyExplorer which provides similar functionality to the plugins you mention. 我使用了LustyExplorer ,它提供了与你提到的插件类似的功能。 Unfortunately it also requires ruby. 不幸的是它也需要红宝石。

Later I started using LycosaExplorer which is based on LustyExplorer but uses python instead of ruby. 后来我开始使用LycosaExplorer ,它基于LustyExplorer,但使用python而不是ruby。 I prefer this one to LustyExplorer because I cannot compile vim against ruby in windows and with python I can do it fine. 我更喜欢这个到LustyExplorer,因为我无法在windows中编译vim反对ruby并且使用python我可以做得很好。

Recently I started using ctrlp.vim which also allows you to do something similar to what you request and doesn't require external depedencies (ruby or python). 最近我开始使用ctrlp.vim ,它也允许你做类似于你请求的事情,并且不需要外部依赖(ruby或python)。 It seems to me that it is slower than LycosaExplorer on folders with a large number of files. 在我看来,它比LycosaExplorer在包含大量文件的文件夹上要慢。

ctrlp is a good one. ctrlp很好。 It's used a lot, if for no other reason than it's in janus.vim 它用得很多,如果没有其他原因,那就是janus.vim

There are a few plugins in this same thematics. 这个相同的主题中有一些插件。 fuzzyfinder may be the most ergonomic though. fuzzyfinder可能是最符合人体工程学的。

I've listed some of them on the description page of searchInRuntime (that also helps opening files) 我在searchInRuntime的描述页面上列出了一些(这也有助于打开文件)

HTH. HTH。

If you don't mind python dependency, LeaderF is a good choice. 如果你不介意python依赖, LeaderF是一个不错的选择。 The performance on large project appears very well compared with some similar plugins. 与一些类似的插件相比,大型项目的性能非常好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM