On Mon, Dec 29, 2008 at 5:48 AM, Ben Schmidt
<[email protected]>wrote:

>
> > No, still not working.
> >
> > ========~/.Xmodmap=========
> > keysym Control_L = Mode_switch
> > keycode 43 = h H BackSpace
> > keycode 37 = Control_L
> > add Control = Control_L
>
> I don't think you'll be able to do what you want with xmodmap, though
> you may manage to get it to work in some obscure apps, Vim being a prime
> candidate, but it's already mappable in Vim. Since control usually isn't
> a mode switch key, apps can't rely on the codes control-keys generate,
> but rather have to use two facts together: the fact that control was
> down and the fact that you pressed H. As such, only if you changed the
> 'un-controlled' version would you get this to work, and even then, when
> you pushed control-H it would behave like control-Backspace. And of
> course would have the unwanted side effect that H on its own would
> behave like Backspace!
>
> Some other piece of software that sits between the keyboard and the
> application may be able to do the more complicated mapping that you
> want, but I don't know of anything, and it would be quite complicated
> (it would have to be configured so that when you pressed the H key with
> control down, it simulated a lifting of the control key, then a press of
> the backspace key, and then a relowering of the control key).


Thanks for your explanation. Although the answer is a bit disappointing, but
at
least it saves my time to explore the xmodmap more.


>
>
> Ben.
>
>
>
>
> >
>

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

Reply via email to