如何在VIM中映射CAPS LOCK键? [英] How to map CAPS LOCK key in VIM?
问题描述
想要将CAPSLOCK映射到Ctrl + ^
任何方式这样做?
Btw,我在网上看到大量样本如何使用注册表黑客交换CAPS和Esc,但是没有一个使用VIM映射命令,而不是外部工具和注册表更改。
Capslock(和Control,Shift等)是一个修饰符键,这意味着它与另一个普通键一起使用来修改该键的含义。 AFAIK操作系统不会将修改键传递到应用程序,除非正常键也被按下,例如,按 CTRL
将不会被应用程序看到,但 CTRL-C
将是。
I'm using GVIM under Windows. And want to map CAPSLOCK to Ctrl+^
Any way to do this?
Btw, I see tons of samples over the web how to swap CAPS and Esc using registry hack, but none of them use VIM map command, instead external tools and registry changes.
Capslock (and Control, and Shift etc.) is a modifier key, which means that it's used with another normal key to modify the meaning of that key. AFAIK the OS does not pass the modifier keys to the application unless a normal key has also been pressed, e.g. pressing CTRL
will not be seen by the application, but CTRL-C
will be.
这篇关于如何在VIM中映射CAPS LOCK键?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!