In TextMate you can drag one or more files onto the icon and use "Find in Project" to search those files, can this be replicated for the current open buffers in Vim?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
grep lgrep vimgrep lvimgrep
These commands might help you.
Check here, If this is what you are looking for.
http://vim.wikia.com/wiki/Find_in_files_within_Vim
回答2:
I like LustyExplorer which has a very fast and easy to use "search in buffers" function.
Ack.vim works in a sort-of-similar way but is file-system based.
回答3:
Out of the box, Vim does not have project management features, but as mentioned by sat you can use various grep command to find something in files or sub-directories.
However you can install project.vim which is a plugin providing the management of multiple files (including search a la Textmate)