在 VIM 正常模式状态行中显示按下的按键
我使用 VIM、Colemak 键盘布局和 Microsoft Natural 4000 键盘。由于 Natural 4000 的按键形状不同,我无法更换键帽。这意味着每个键都标有“不正确”的键——我按下显示“O”的键,然后输入“Y”。
在正常使用中这很好,因为我用 Colemak 打字很流畅,不会出现很多打字错误。但对于 VIM,它会带来一些问题,因为我经常需要“不按顺序”敲击某个键——即,在没有任何上下文的情况下突然敲击“g”。由于某种原因,这很难做到,而且我总是按错键。
我希望能够按下前缀键(例如,前导键两次 - \),然后在状态行上显示 1-2 秒内我按下的任何其他键。
这样,我可以快速点击 \,然后点击一两个键,看看它“真正”是什么键。
我有什么想法可以实现这一点吗?
I use VIM, the Colemak keyboard layout, and a Microsoft Natural 4000 keyboard. Since the Natural 4000 has differently-shaped keys, I could not change the keycaps. This means each key is labeled with an "incorrect" key -- I press the key that says "O" and it types "Y".
That's fine in normal use, because I touch-type smoothly with Colemak and don't make many typos. But with VIM it presents a bit of a problem, because I often need to hit a key "out of sequence" -- i.e, just suddenly hit "g" without any context. For some reason that's harder to do, and I keep hitting the wrong keys.
I'd like to be able to hit a prefix key (say, the leader key twice -- \) and then have any further keys I hit within 1-2 seconds shown on the status line.
This way, I could quickly hit \ and then tap a key or two, and see what key it "really" is.
Any ideas how I could make that happen?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试设置此
它会在您输入时在状态行中显示您的击键,而无需任何前缀键。
您也可以在 vim 的正常模式下使用以下命令将其关闭(按 Esc 键)。
Try set this
It displays your keystrokes in statusline as you enter them, without any need for a prefix key.
you can also turn it off by using below command in normal mode of vim (pressing Esc key).