Friday, May 27, 2011

Re: unable to map

On 27/05/11 12:12, A.Daitche wrote:
> Hallo Tony,
>
> The behavior you are describing can be disabled in the Gnome settings
> for keyboard shortcuts (there ALT-Space is assigned to activate the
> window menu). I have done it already, so my GVim receives the key
> combination.
> Concerning the behavior in the console, i get the same result as you.
>
> Best regards,
> Anton
>

Well, if gvim receives the key combination, you can check which key
combination it gets by going to Insert mode, then hitting Ctrl-V
followed by Alt-Space. If it inserts <M-Space> (9 characters), it's OK.
If it inserts a no-break space (which you can check by going back to
Normal mode, placing the cursor over what was just inserted, hitting ga,
and checking that the hexcode is 0xA0) it's also OK. If it inserts ^[
followed by a space it might be OK but I'm less sure. Anything else is
suspect.

How to remap it may depend on what Vim sees, so you may have to wrap
your :map (or friend) statement in :if &term == ... elseif &term == ...
else ... endif.


Best regards,
Tony.
--
"Virtual" means never knowing where your next byte is coming from.

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