vim ߞ 如何搜索缓冲区?
我正在寻找一些命令,例如:
:b1!g/something_here/
我应该在缓冲区“b1”中搜索单词“something_here”。 我该怎么做?
I am looking for some command like:
:b1!g/something_here/
where I supposedly search for a word "something_here" in the buffer "b1". How can I do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
好吧,转到缓冲区 b1 ,
为了搜索所有打开的缓冲区,有各种插件,我认为最好看一下 www.vim.org
编辑:像这样 - buffergrep
我个人最喜欢的各种搜索: compview
Well, go to buffer b1 and
For searching through all open buffers there are various plugins, for which I think would be best if you took a peek on www.vim.org
Edit: like this one - buffergrep
And my personal favorite for all kinds of searching: compview
你可以尝试一些简单的事情:
:b0 |?要搜索的东西
You can try something simple:
:b0 |?somethingToSearch
我经常这样做:
最后一个 :ls 允许我查看所有未位于第 1 行的缓冲区
I often do:
The last :ls allows me to see all the buffers that are not positioned on line 1