(Oops, forgot the attachment)

On 08/04/09 09:50, netimen 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.

Well, you could use both

        :map  1 {
        :map! 1 {

but how would you insert the digit 1 in a count, a command, or in text?

If your native keyboard is Russian, see also the 'langmap' option (which 
has been greatly improved at patchlevel 7.2.109).

Or if you use aa Latin keyboard with a keymap (as set by the 'keymap' 
option) and that keymap is less than satisfactory to you, you can write 
your own. I did that, because I'm not accustomed with the keyboard 
layouts usually seen on Cyrillic typewriters. I'm appending it, though 
you'll probably find that it has an excessive number of two-key 
sequences. Of course, if you decide to use it, feel free to alter it any 
way you like. (To use it, drop it into $VIM/vimfiles/keymap/, 
~/.vim/keymap/ or ~/vimfiles/keymap/.


Best regards,
Tony.
-- 
Razors pain you;
Rivers are damp;
Acids stain you;
And drugs cause cramp.
Guns aren't lawful;
Nooses give;
Gas smells awful;
You might as well live.
                -- Dorothy Parker

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

Attachment: russian-phonetic_utf-8.vim
Description: application/octetstream

Reply via email to