From: "Yakov Lerner" <[EMAIL PROTECTED]>
Subject: Re: To be a keycode or not to be a keycode - that is the question!
Date: Sun, 24 Sep 2006 15:20:44 +0300

> On 9/24/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrot> Hi,
> >
> >  VimTip 979 suggests to do the following mapping:
> >
> >      nmap <Space> /
> >      nmap <C-Space> ?
> >
> >  . I wanted to try that and wrote the sequence into my .vimrc.
> >
> >  The first mapping works nice, but the second doesn nothing.
> >
> >  I tried to figure out what happens (or what do not happen...) and
> >  used the Ctrl-k trick I learnd here. But it shows that the problem
> >  is some levels down.
> >
> >  I used xkeycaps and it shows, that Ctrl-Space isn't recognized at all
> >  and Shift-Space does the same as Space.
> >
> >  Before I shoot into my own feet and render my computer useless by
> >  screwing up the keyboard interface:
> >
> >  1.) Is it possible and sane to map S-Space and C-Space to something
> >      (and what ?) with xkeycaps ?
> 
> Try 'man xmodmap'.
> 
> The following actions can/will  lead to the solution:
> 
> 1) Choose new unique escap-sequence, unused by other
> control keys; for example <Esc>)1 (I don't really know if this is unique...)
> 2) Tell xmodmap to send this key sequence for Ctrl-Space
> 3) In vim, map <Esc>)1 to the rhs of your choice.
> Repeat for Shift-space.
> 
> Note that in this scenario, vim doesn't really know that <Esc>)1 is
> Ctrl-Space, but nevertheless the whose conspiracy works.
> 
> Hope it helps
> Yakov "ignorecase" Lerner
> 

Hi Yakov,

 Thank you for your reply!  :)

 There is only one thing remaining "mysterious": 
 Why do I have to "hack" my keyboard settings, when others (at least
 the author of the vimtip 979) can simply use that? 
 Is this a difference between Unix/Windows/MacOSX or is it just "my
 flavour" of keyboard settings?

 Keep hacking!
 mcc
 Meino "I have CTRL-Space now!" Cramer :)



  

Reply via email to