Meino Christian Cramer wrote:
HI,

 There are a lot of specialized curor movement commands, which all
 will speed up one vimy life.

 ...exeption: You are editing on a german keyboard...

 There you will "reach" "}" by pressing AltGr-0, "]" by presing
 AltGr-9 and so on, which always is at least bad Yoga for your right
 hand. Combinations like "[]" or "][" are even more painful
(german-keyboard-wise).
 Is there a vim hacker out there, who has made good
 experiences with a certain remapping of those keys/function to other
 keys (without loosing other important vim features) and would like to
 share those mappings ?

 Thank you very much in advance for any help !

 Keep hacking!
 mcc



In general, the "safest" keys to use for the {lhs} of mappings are F2-F9, F11-F12, Shift-F1 to Shift-F12, in the sense that they usually aren't already used by something else, neither in Vim nor in the OS or window manager, and that Vim can reliably and unambiguously detect them.

Personally, I don't have much difficulty depressing the AltGr key with the right thumb then hitting other keys with the fingers of the right hand. The hardest one on my Belgian keyboard is the "bar" key | (AltGr-1) but I can just reach it with the right middle finger while holding down AltGr with the right thumb. (Maybe I have pianist's hands?)

If you have {[]} on AltGr-7 to AltGr-0, you may want to remap them to the F keys just above them (but without the modifier):

        :map <F5> {
        :map <F6> [
        :map <F7> ]
        :map <F8> }
        :map! <F5> {
        :map! <F6> [
        :map! <F7> ]
        :map! <F8> }

Best regards,
Tony.

Reply via email to