How do I search the open buffers in Vim?

后端 未结 6 535
陌清茗
陌清茗 2020-12-23 16:36

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 li
6条回答
  •  自闭症患者
    2020-12-23 16:56

    Or

    :bufdo vimgrepadd threading % | copen
    

    The 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.

提交回复
热议问题