Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim and azerty keyboards

I recently started learning Vim and before I go deeper I have a question I need answered.

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?

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.

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.

like image 891
Ark. Avatar asked Sep 27 '22 10:09

Ark.


1 Answers

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 § \

(The last one is so useful that I remapped it outside of Vim, on my linux system-wide keyboard configuration)

But I think that remapping all keys to fit the qwerty keyboard is more a source of confusion, than a good solution.

like image 73
yolenoyer Avatar answered Sep 29 '22 07:09

yolenoyer