如何为我的 vimgrep 结果模式着色 [英] How to color my vimgrep result patterns

查看:48
本文介绍了如何为我的 vimgrep 结果模式着色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用 Vim 时,有没有办法让 :grep:vimgrep 为返回到缓冲区的模式着色?

When using Vim is there a way that :grep or :vimgrep will color the patterns returned to the buffer?

推荐答案

如果你在 :vimgrep 之后搜索模式,Vim 会高亮它.只需将 :vimgrep 模式文件 编辑为 :g/pattern/.

If you search for the pattern after you've :vimgrep'd it, Vim will highlight it. Just edit the :vimgrep pattern files into :g/pattern/.

要获得更丰富的解决方案,请尝试此脚本.

For a richer solution, try this script.

这篇关于如何为我的 vimgrep 结果模式着色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆