Vim和Azerty键盘 [英] Vim and azerty keyboards
问题描述
我最近开始学习Vim,在深入学习之前,我有一个问题需要回答.
I recently started learning Vim and before I go deeper I have a question I need answered.
使用AZERTY键盘,我是否应该重新映射命令和快捷方式的键以适合QWERTY键盘的键的位置?
Using a AZERTY keyboard, should I remap the keys for the commands and shortcuts to fit the position of the keys of a QWERTY keyboard?
我之所以这样问,是因为创建这些命令显然需要进行大量思考,例如,当我看到AZERTY键盘上的"$"与QWERTY键盘相比时,我忍不住要走多远认为在某些时候可能感觉不对.
I am asking this because obviously quite a lot of thinking must have being put creating thoses commands, and when I see how far the '$' is on a AZERTY keyboard compared to the QWERTY one for example I can't help but think it might feel wrong at some point.
这是AZERTY布局: http://www.nathael .org/Data/vi-vim-cheat-sheet.svg
Here is the AZERTY layout: http://www.nathael.org/Data/vi-vim-cheat-sheet.svg
我什至不知道是否有可能重新映射我需要的方式,基本上只重新映射命令输入,所以我需要来自专业人士"和/或精明用户的意见.
I don't even know if it will be possible to remap the way I would need, basically only remapping for command input, so I need so opinions from the 'pros' and/or azerty users.
推荐答案
我也使用azerty键盘,并且我没有重新映射按键以适合qwerty键盘.
I also use an azerty keyboard, and I didn't remap the keys in order to fit the qwerty keyboard.
但是我从一些未使用的字符(如é
,è
,à
,ç
(所有强调字符)的非常容易访问)中获利,并拥有一些像这样的地图:
But I take profit of the very easy accessibility of some unused chars, like é
, è
, à
, ç
(all the accentuated characters) and have some maps like this:
noremap à @
noremap ç @@
noremap § \
(最后一个非常有用,以至于我在Linux系统级键盘配置中将其重新映射到Vim之外)
(The last one is so useful that I remapped it outside of Vim, on my linux system-wide keyboard configuration)
但是我认为重新映射所有按键以适合qwerty键盘,比有效的解决方案更容易引起混乱.
But I think that remapping all keys to fit the qwerty keyboard is more a source of confusion, than a good solution.
这篇关于Vim和Azerty键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!