为VIM快速查找文件? [英] Fast 'Find in Files' for VIM?

查看:284
本文介绍了为VIM快速查找文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以在VIM中快速找到文件中的查找?

我们的代码库足够大,搜索需要处理一个索引。 grep / vimgrep / etc太慢。



索引不需要特别快,我可以在一夜之间索引。

谢谢,

我也在Windows环境下工作。如果是源代码(而不是全文搜索),那么使用TagList插件的ctags应该可以满足您的需求。例如,请参阅:

http://www.thegeekstuff.com/2009/04/ctags-taglist-vi-vim-editor-as-sourece-code-browser/

编辑:TagList和ctags也可以在Windows上工作(这就是我使用的)。查看TagList安装页面和FAQ。以下链接可能是有用的:



还有一个TagList论坛,您可以获得更多帮助:

http://tech.groups.yahoo.com/group/taglist/



我在Windows机器上设置了一段时间,但是我不记得遇到任何问题。

What are some options for getting really fast 'Find in Files' searching in VIM?

Our codebase is large enough that searching needs to work off an index. grep/vimgrep/etc are too slow.

Indexing doesn't need to be particularly fast; I can index overnight.

Thanks,

[EDIT] I'm also working in a Windows environment.

解决方案

If it's source code (rather than full text search), then ctags with the TagList plugin should work well for your needs. See, for example:

http://www.thegeekstuff.com/2009/04/ctags-taglist-vi-vim-editor-as-sourece-code-browser/

EDIT: TagList and ctags will work on Windows as well (that's what I use). See the TagList install page and FAQ. The following links might prove useful:

There's also a TagList forum where you can get further help:

http://tech.groups.yahoo.com/group/taglist/

I set it up on my windows machine a while back, but I don't remember encountering any problems.

这篇关于为VIM快速查找文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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