问题描述
有什么方法可以在VIM中快速找到文件中的查找?我们的代码库足够大,搜索需要处理一个索引。 grep / vimgrep / etc太慢。
索引不需要特别快,我可以在一夜之间索引。
谢谢,
我也在Windows环境下工作。如果是源代码(而不是全文搜索),那么使用TagList插件的ctags应该可以满足您的需求。例如,请参阅:
编辑:TagList和ctags也可以在Windows上工作(这就是我使用的)。查看TagList安装页面和FAQ。以下链接可能是有用的:
还有一个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:
- http://www.vim.org/scripts/script.php?script_id=273
- http://vim-taglist.sourceforge.net/installation.html
- http://vim-taglist.sourceforge.net/faq.html
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快速查找文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!