问题
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)
来源:https://stackoverflow.com/questions/5290617/vim-find-in-buffers-capabilities-that-resembles-those-in-textmate