On 09/04/09 09:53, Anton Sharonov wrote:
>
>> Russian keyboard layout doesn't have many characters ({ [<
>> etc). I'd like to map some other keys to it (preferably the
>> numbers on the right).
>>
>> Simple solution ":map 1 {" doesn't work, because I'd like the
>> new mapped key to behave as { in all modes. For example I'd
>> like "f 1" to jump to the next { character.
>
> As already suggested by Tony, I will also highly recommend to use
> keymap (:help keymap). This way, you can use at least all normal
> mode commands (for instance "}" for paragraph-wise movement)
> without switching you OS input method, while typing native
> russian characters in insert mode. It is of course still not
> solution for the problem with "f{" in normal mode (it will look
> for "Х" - capital "ha" character) and not for entering the "{"
> "}" in insert mode - for this to work your only way is probably
> to remap something, as Tony already suggested. For the normal
> mode, if I were you and have to work a lot with russian texts in
> VIM, I would may be take the way of sacrifice the "ha" and
> "tverdyj znak" letters in normal mode for those commands "f}"
> "f{" so that they are triggered by the same keystrokes as by
> non-active russian keymap).
>

Anyone wishing to write Russian prose (or poetry, for that matter) 
cannot afford never to use a khah, nor even a tvyordyy znak. For the 
latter, how many verbs use it between the prefix and the root? Answer: a 
lot. Among the first "little songs" I learnt when starting on Russian, 
one of them goes

Э-эй ухнем! э-эй ухнем!
Еще разик, еще раз...

with a khah, and another

У попа была собака, он ее любил.
Она съела кусок мяса, он ее убил.
И в землю закопал, и надпись написал:
У попа была собака...

(repeat at will) with a hard sign. (Also хорошо and холодно, two of the 
first words I learnt and certainly not of the rarest, use a khah. And at 
the start of the word, to boot, which would capitalize that letter 
whenever the word starts a sentence.)


Best regards,
Tony.
-- 
    A village.  Sound of chanting of Latin canon, punctuated by short, sharp
    cracks.  It comes nearer.  We see it is a line of MONKS ala SEVENTH SEAL
    flagellation scene, chanting and banging themselves on the foreheads 
with
    wooden boards.
                  "Monty Python and the Holy Grail" PYTHON (MONTY) 
PICTURES LTD

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to