[英]How to remap <C> (control) modifier key in vim?
I avoid the "control" key, AKA <C>
in vim parlance, on my laptop; 我在笔记本电脑上避免使用“控制”键,即vim用语中的AKA
<C>
; I hate where Apple put it. 我讨厌Apple把它放在哪里。 I would really like to remap all of the vim commands using control to instead use "command", but this does not seem possible on a Mac, despite what I have read.
我真的想用控制来重新映射所有的vim命令而不是使用“命令”,但是在Mac上看起来似乎不太可能,尽管我已经读过了。 I have read that I should use
<Leader>
to set such mappings, but I want to avoid remapping every single <C>
mapping that I can find or think of in my .vimrc, just to forget some and bloat my .vimrc. 我已经读过我应该使用
<Leader>
来设置这样的映射,但我想避免重新映射我在.vimrc中可以找到或想到的每一个<C>
映射,只是为了忘记一些并使我的.vimrc膨胀。
I want to avoid xmodmap or solutions beyond the scope of .vimrc, as I want to maintain compatibility of my config files that I sync across systems. 我想避免超出.vimrc范围的xmodmap或解决方案,因为我想保持我在系统间同步的配置文件的兼容性。
What I really want to do is specify an alternate key (probably ,
) as a modifier key equivalent to <C>
. 我真正想要做的就是指定一个备用键(可能
,
)作为修饰键相当于<C>
There is definitely no vim-only solution for this; 绝对没有针对vim的解决方案; vim simply does not have this capability.
vim根本没有这种能力。 Map
<CapsLock>
to <Ctrl>
in System Preferences -> Keyboard -> Modifier Keys...
, take a few minutes to adjust, and repeat for every MacBook you ever lay hands on (even if it's not yours). 将
<CapsLock>
映射到System Preferences -> Keyboard -> Modifier Keys...
<Ctrl>
,需要几分钟的时间进行调整,然后重复您所有的MacBook(即使它不是您的)。 The world will be a better place for it. 世界将是一个更好的地方。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.