非英语键盘vim用户轻松键入 [英] Easy typing for non-english keyboards vim users
问题描述
在英式或美式键盘中,很容易键入 \ ,/, [和] 等键只有一个按键.对于非英语键盘,通常是不一样的.
In English or US keyboards keys like \, /, [ and ] are very easily typed with only one key stroke. Usually is not the same for non-english keyboards.
是否有一种方法可以使这些类型的键盘具有相同的打字简便性?
如果是mapping keys
的问题,可以请您明确地进行说明吗? (欢迎使用西班牙版式示例)
Is there a way to achieve the same easiness of typing for these type of keyboards?
If it is a matter of mapping keys
can you please put clear instructions to do it? (Spanish layout example is welcome)
编辑:非常欢迎使用不同语言的示例!
EDIT: Examples by distinct languages are very welcome!
推荐答案
我已经在评论中提出了一些建议.现在,就简单的映射而言,对于普通模式,您始终可以对主键进行简单的重新映射.
I've suggested something already in the comments. Now, as far as simple mappings go, for normal mode you can always do the simple remapping of main keys.
nnoremap : >>
nnoremap ; >>
例如,为了缩进(我在这里使用克罗地亚语键盘布局...在<
和>
字符所在的位置,我有;
和:
...我确定您了解这个例子).您可以类似地用括号,方括号或任何其他必需字符来重新映射所有本地字符.
for example, for indent (I'm on Croatian keyboard layout here ... where the <
and >
characters are, I have ;
and :
... I'm sure you understand the example). You can analogly remap all your local characters with parenthesis, brackets or any other essential characters.
这篇关于非英语键盘vim用户轻松键入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!