有什么想法吗? 解决方案 或:bufdo vimgrepadd 线程 % |科本quickfix 窗口可能不适合您,但它比 ST2 的结果面板"功能强大得多,这仅仅是因为您可以在跳转到位置时保持打开和可见,并在它不存在的情况下与它进行交互.I'd like to search for text in all files currently open in vim and display all results in a single place. There are two problems, I guess:I can't pass the list of open files to :grep/:vim, especially the names of files that aren't on the disk;The result of :grep -C 1 text doesn't look good in the quickfix window.Here is a nice example of multiple file search in Sublime Text 2:Any ideas? 解决方案 Or:bufdo vimgrepadd threading % | copenThe quickfix window may not look good for you but it's a hell of a lot more functional than ST2's "results panel" if only because you can keep it open and visible while jumping to locations and interact with it if it's not there. 这篇关于如何在 Vim 中搜索打开的缓冲区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-21 13:09