vim 命令可以映射到带有 >1 修饰符的组合键(例如 ctrl-alt-v)

发布于 2024-08-05 20:29:52 字数 157 浏览 2 评论 0原文

是否可以将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

情深缘浅 2024-08-12 20:29:53

它们可以很好地组合,例如:映射 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.

辞别 2024-08-12 20:29:52

是的,您可以映射 (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.

深海夜未眠 2024-08-12 20:29:52

还有这个脚本 (琶音),允许您使用两个或映射中同时按下的键(任何键,不仅仅是像 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文