Vim: Find in Buffers capabilities that resembles those in TextMate

我怕爱的太早我们不能终老 提交于 2020-03-03 05:32:26

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!