fredag 9 oktober 2015 skrev Erik Christiansen <[email protected]>:

> On 08.10.15 20:33, Gevisz wrote:
> > In this connection I have only one inconvenience connected with the
> facts that
> > 1) I usually have to use 3 keyboard layouts at the same time switching
> >    between them with a hot key,
> > 2) it is impossible to have a "direct hot key switch" to a certain
> >    keyboard layout in Linux world.
>
> It is very risky to say that anything is impossible in linux; it usually
> turns out that there are at least three ways to do what one at first
> thinks impossible. My first reaction to your problem was to suggest
> several files to switch to ~/.Xmodmap, and then find out if a SIGHUP to
> X would make it reread its config.
>
> Much easier, by appearances, is Tony's suggestion. A quick look at
> ";h keymap", leading to ";h mbyte-keymap", looks very promising, not
> least since there are many ready-to-use mappings:
>
> $ locate -r 'keymap.*vim' | wc -l
> 130
>
> That, though, only maps in Vim, and only during text insertion.
> (which may be just what you want)
>
> If cross-application mapping is desired, though, then an alternative to
> ~/.Xmodmap is to just execute (several of) something like:
>
> $ xmodmap -e 'keycode 91 = 0x2c'    # Change numeric pad '.' to ','
>
> in a shell script, after using xev to elucidate the keycode and keysim of
> all the keys you want to remap.
>
> For me, this reverts the above mapping:
>
> $ xmodmap -e 'keycode 91 = 0x2e'    # Change numeric pad ',' to '.'
>
> OK, that's three ways. Time to stop.
>
> Erik
>
> <https://github.com/bpj/vim-ToggleKeymap>


I have a hack to ease switching keymaps:

https://github.com/bpj/vim-ToggleKeymap

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to