Vim:突出显示 incsearch 中的所有匹配项 [英] Vim: highlight all matches in incsearch

查看:35
本文介绍了Vim:突出显示 incsearch 中的所有匹配项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 incsearchhlsearch 选项.按 Enter 键后,所有匹配项都会突出显示,但只有我键入的第一个匹配项.我想在输入时突出显示所有匹配项.

我怎样才能得到这种行为?

解决方案

您可以使用 ://github.com/haya14busa/incsearch.vim#basic-usage" rel="noreferrer">映射您的搜索键以调用插件的搜索.

I'm using the incsearch and hlsearch options. All matches are highlighted after I press enter, but only the first one as I type. I'd like to highlight all matches as I type.

How can I get that behavior?

解决方案

You can use the incsearch.vim plugin:

Install with your favourite plugin manager and map your search key(s) to call the plugin's search.

这篇关于Vim:突出显示 incsearch 中的所有匹配项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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