当我进入插入模式时,是否可以让 Vim 切换到西里尔键盘布局,然后在命令模式中切换回英语(也许通过执行setxkbmap
)?
目前,我用它来编辑用西里尔文书写的文档,并且不断按 Alt+Shift 键很累。
答案1
我认为这个langmap
选项就是为了解决这些问题。来自:help 'langmap'
:
This option allows switching your keyboard into a special language
mode. When you are typing text in Insert mode the characters are
inserted directly. When in command mode the 'langmap' option takes
care of translating these special characters to the original meaning
of the key. This means you don't have to change the keyboard mode to
be able to execute Normal mode commands.