![](/img/trans.png)
[英]Vim, How to create key bindings to: shift, ctrl, alt, cmd keys?
[英]VIM how to map the combine key: ctrl+shift+w+,
众所周知,组合键ctrl+shift+w+,
可以帮助我们调整窗口大小,但是我认为它很复杂,因此我想用ctrl + ,
映射它。 但是我的所有方式都是行不通的。 谁能给我一些建议?
Vim和gVim不能以这种组合检测到偏移 ,即ctrl + shift + w与ctrl + w完全相同。
众所周知,组合键:ctrl + shift + w +可帮助我们调整窗口大小,(...)
没有这样的内置命令-您可以在:help ctrl-w
检查所有可用的窗口相关命令。
您可能正在使用一些自定义映射。 您可以使用:map
或:map <cw>
。 找到该映射触发的命令后,即可创建更简单的映射。
但是请注意,所有键组合均可用。 在特别,CTRL +,组合而不是Vim检测,如指出的Vim FAQ 20.5 :
20.5. Why does mapping the <C-...> key not work?
The only Ctrl-printable-key chords which Vim can reliably detect (because they
are defined in the ASCII standard) are the following: >
Ctrl-@ 0x00 NUL
Ctrl-A to Ctrl-Z 0x01 to 0x1A
Ctrl-a to Ctrl-z 0x01 to 0x1A
Ctrl-[ 0x1B ESC
Ctrl-\ 0x1C
Ctrl-] 0x1D
Ctrl-^ 0x1E
Ctrl-_ 0x1F
Ctrl-? 0x7F DEL
(...)
You can try other combinations of Ctrl + any key, but they may either
not work everywhere (e.g. the terminal might not pass that key to Vim,
or they might have unintended side effects (e.g. mapping <C-I> means
also to map <Tab>).
您可以在20.4找到更多信息。 我无法为该键创建映射。 怎么了?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.