如何使vim搜索换行更明显? [英] How to make vim search wrap more obvious?

查看:22
本文介绍了如何使vim搜索换行更明显?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我主要在大型显示器上使用 vim(控制台和 gvim)全屏显示.我的周边视觉容易错过屏幕底部的细节.

I mostly use vim (console and gvim) full screen on a large monitor. My peripheral vision tends to miss details at the bottom of the screen.

有关如何使当前搜索换行时出现的搜索到达底部,继续在顶部"消息更明显的建议?

Any suggestions on how to make the "search hit BOTTOM, continuing at TOP" message that appears when the current search wraps more obvious?

我确实设置了

set noerrorbells
set novisualbell

在我的 vimrc 中避免每次键入 Esc 时出现铃声/屏幕闪烁.但是,重新启用这些选项对搜索换行没有影响(换行时仍然没有哔哔声或闪烁).

in my vimrc to avoid the bell/screen flash every time I type Esc. However, re-enabling those options has no effect on search wrap (still no beep or flash on wrap).

我认为,使用可视铃来指示搜索换行效果会很好.知道如何实施吗?

Using visual bell to indicate search wrap would work well, I think. Any idea how to implement that?

推荐答案

很难改变这种行为,你必须覆盖所有内置的搜索命令 (/, n/N*# 等)和任何自定义(插件)映射.如果这让你感到困扰,也许

It's hard to change that behavior, you'd have to override all built-in search commands (/, n / N, *, #, etc.) and any custom (plugin) mappings. If this is bothering you, maybe

:set nowrapscan

值得一试.然后你仍然可以通过 gg/G手动"换行,这很快就会进入你的肌肉记忆,同时让你保持警觉.

is worth a try. You can then still "manually" wrap via gg / G, which will soon go into your muscle memory, yet keep you alert.

这篇关于如何使vim搜索换行更明显?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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