Monday, May 24, 2010

Re: Mapping the Super / Windows key

On 24/05/10 17:22, Bernhard Walle wrote:
> Hi!
>
> Is it possible to map the Super key (Windows key) in gvim? I understand
> that this is quite hard / impossible in Terminal vim, but in gvim it
> should be possible in theory, right?
>
>
> Regards,
> Bernhard
>

Even in gvim, it isn't sure that the key reaches Vim. Try the following:

1) :set showcmd
2) Start Insert mode
3) Hit Ctrl-V (or Ctrl-Q if you use Ctrl-V to paste into Vim)
4) Hit the problematic key or key combo.

If after step 4, you still see ^V (or maybe ^Q) at bottom right of the
Vim screen, the key or key combo you hit at step 4 hasn't reached and
you cannot map it. Im saying "key or key combo" because, for instance,
you cannot map Shift alone but you can map Shift-Tab which is different
from Tab.

If Vim does see the key or key combo, it will insert into your buffer
"what it sees it as", at the cursor. For instance if you hit Alt-a at
step 4, Vim will insert á (a-acute) because Alt-a and á are
indistinguishable to Vim. For a "special key" (e.g. an arrow or Fn key),
gvim inserts its <> representation while Console Vim inserts whatever
bytes it gets from the terminal.


Best regards,
Tony.
--
Heavy, adj.:
Seduced by the chocolate side of the force.

--
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

No comments: