Monday, October 12, 2015

Re: vim and touch typing

On Mon, 12 Oct 2015 15:31:32 +0300 Nikolay Pavlov <zyx.vim@gmail.com> wrote:

> 2015-10-12 15:20 GMT+03:00 Reid Thompson <Reid.Thompson@ateb.com>:
> > On Sun, 2015-10-11 at 11:19 +0300, Gevisz wrote:
> >
> >
> >> > AFAIK you cannot do this directly with X server configuration,
> >>
> >> Yes. That it why I concluded that it is impossible to do in GNU/Linux.
> >>
> >
> >> > but there are a number of "external" keyboard switchers which may
> >> > have the needed capabilities.
> >>
> >> I had an extensive google search earlier and found nothing, though.
> >>
> >> But you have encouraged to ask this question on gentoo-user.
> >>
> >
> >> > The other variant is a console app like setxkbmap or xkb-switch used
> >> > in conjunction with global shortcuts capabilities provided by your
> >> > DE/WM (if no, there still are apps which provide global shortcuts
> >> > using X server own capabilities).
> >
> >
> > create keymap switch scripts for your 3 layouts.
> > I.E.
> > $ cat kbswitchus
> >
> > #!/bin/bash
> > setxkbmap us
> >
> > $ cat kbswitchru
> >
> > #!/bin/bash
> > setxkbmap ru
> >
> >
> > $ cat kbswitchua
> > #!/bin/bash
> > setxkbmap ua
> >
> > map each script to the 'direct hot key' that you want
>
> This does not work this way. Try your script and then press <C-v> in ua keymap.
>
> Normally X has some "primary" layout (not sure how exactly it is
> called) and when you hold <C- keys which you press next are treated
> according to that layout. If you use `setxkbmap ru` you will be able
> to use <C-ы>, but not <C-s>.

I have mapped some special keys that do not change after switching the keyboad layout.

> > --
> > --
> > 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 vim_use+unsubscribe@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>

--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment