On 09/04/09 09:33, netimen wrote:
>
> I have mapped the numpad 4 key to a { symbol using xmodmap for both
> russian and english layouts:
>
> keycode 83 = braceleft braceleft braceleft braceleft
>
> So everywhere except vim that key works like {. But in vim I use
> russian-jcukenwin keymap for russian language, where I have:
>
> {     Х       CYRILLIC CAPITAL LETTER HA
>
> So when I press the numpad 4 key, vim receives it like a { and maps it
> to russian X. And I can't map the<kLeft>  because vim receives
> { instead of it. Can I map the raw keycode 83 to a { in vim for the
> russian keymap?

I don't think so; but there are several possible solutions:

Possibility 1: Use a different keymap (or make one, see the example I 
sent), so that { is not mapped to Russian ha. I map Russian ha to h or x 
(Latin x or Latin h), and I can do that because, with my choice of 
Cyrillic layout, there is no conflict (I use % as a "dead key" prefix 
for ya yo yu and eh oborotnoye, as well as for che sha shcha and soft 
sign, which frees that many keys for something else -- respectively, a o 
u ye, tse es kha and apostrophe -- when not immediately preceded by %). 
And I used that because there was no obvious "phonetic" mapping for 
those letters.

Possibility 2: Get rid of that remapping in X (it's unhealthy to have 
numpad keys mapped to something else). Probably move it to some AltGr 
combo (let's say AltGr-( or AltGr-[) if you have an AltGr key.

Possibility 4: Keep everything as-is, but toggle keymaps off when you 
need the brace. Do that by hitting Ctrl-^ in Insert mode, or if you 
don't know where that is, by means of the mappings I provided in an 
earlier post.


Best regards,
Tony.
-- 
When in doubt, do what the President does -- guess.

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

Reply via email to