DervishD wrote:
    Hi Matthew :)

 * Matthew Winn <[EMAIL PROTECTED]> dixit:
The <Leader> defaults to \ on some installations, I believe.
\ is the default value, and that's the value used if mapleader is
empty. It's a bad idea to set mapleader to , unless you have a
keyboard where \ is hard to type, as , is already a Vim command.

    \ is hard to type in my keyboard (spanish) because I'm forced to
press Alt-Gr plus the top left key in the keyboard (just below ESC), so
I'm looking for a good substitute for the leader: do you know where
could I find "free" characters to use? Looks like every key is already a
vim command and I must confess (full of embarrasment here...) that I
don't know even 10% of them O:))) Getting the list from the help is a
bit tedious and error prone, so...

    Thanks a lot in advance!

    Raúl Núñez de Arenas Coronado


You can at least remap it to something which can be produced by hitting only one key, for instance:

        :map   <F12>   <Bslash>
        :map!  <F12>   <Bslash>

will make the F12 key an alias for \ in all modes. Or instead of F12, you can use some key for some character with the high bit set, if you have some: for instance, on my Belgian keyboard, the key at far right above the right-shift key is µ (Greek mu) and the one at top left under Esc is ² (superscript two). Either of them can be used as the {lhs} of a mapping. Similarly for accented keys: on this keyboard, the upper-row digits require the Shift key, and, among their unshifted counterpart, there are (among others) é § è ç à which I could also remap. Also ù to the left of µ Of course, your Spanish keyboard will be different in the details, but maybe the same principle applies.


Best regards,
Tony.

Reply via email to