vim 命令可以映射到带有 >1 修饰符的组合键(例如 ctrl-alt-v)
是否可以将 vim 命令映射到涉及多个修饰符的按键组合?例如:ctrl-alt-v
。
据我所知,唯一可以与另一个组合使用的修饰键是shift。例如
和
。或者我错过了什么?
Is it possible to map a vim command to a combination of keys involving more than one modifier? For example: ctrl-alt-v
.
As far as I can tell, the only modifier key that can be used in combination with another is shift. e.g. <C-v>
and <C-V>
. Or am I missing something?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
它们可以很好地组合,例如:映射 CTRL-Alt-v。
Meta (Alt) 是 M,Shift 是 S,CTRL 是 C。
They can be combined just fine, like this for example: <C-M-v> maps CTRL-Alt-v.
Meta (Alt) is M, Shift is S, and CTRL is C.
是的,您可以映射
或
(A、Alt 和 M、Meta 是等效概念)。请参阅:help key-notation
。Yeah, you would map
<C-A-v>
or<C-M-v>
(A, Alt, and M, Meta are equivalent concepts). See:help key-notation
.还有这个脚本 (琶音),允许您使用两个或映射中同时按下的键(任何键,不仅仅是像 Shift、Alt 等修饰键)更多。
There's also this script (arpeggio) that allows you to use two or more simultaneously pressed keys (any keys, not just modifiers keys like shift, alt, etc.) in your mappings.