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

问题描述

有哪些选项可以在 VIM 中快速在文件中查找"搜索?

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

我们的代码库足够大,搜索需要使用索引.grep/vimgrep/etc 太慢了.

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.

谢谢,

我也在 Windows 环境中工作.

I'm also working in a Windows environment.

推荐答案

如果是源代码(而不是全文搜索),那么带有 TagList 插件的 ctags 应该可以很好地满足您的需求.参见,例如:

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-sourcece-code-browser/

TagList 和 ctags 也可以在 Windows 上工作(这就是我使用的).请参阅 TagList 安装页面和常见问题解答.以下链接可能有用:

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:

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

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

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

我不久前在我的 Windows 机器上设置了它,但我不记得遇到任何问题.

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

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

06-19 14:54