Friday, September 2, 2011

Re: Problem mapping Ctrl+Alt combinations in GVIM on windows

On 02/09/11 19:59, William E. Skeith III wrote:

> Hello,
>
> I am trying to map some basic Ctrl+Alt key combinations for GVIM on windows,
> for example>
>      :imap<C-M-L>  <C-Right>
>
> but I've become seriously stuck.  It seems that windows GVIM does not respond
> at all to<C-M-x>, where x is virtually any printable character (0-9,a-z,
> punctuation, etc.).
>
> To test, I hit ctrl-Q while in insert mode, and then ctrl-alt-x key
> combinations, (as described above) and nothing happens at all.  However, it
> does respond to other non-printable keys, for example<M-C-Left>, but that's
> about it.
>
> Can anyone else confirm this to be the case?  And if so, are there any
> work-arounds?  Key combinations like that would be extremely useful for me...
> By the way, I'm using version 7.3.46, installed just a few days ago.
>
> Many thanks in advance for your help.
>
> -WES
>

Ctrl-Alt-letter keys may be preempted by the OS, or they may trigger a menu.

When you type
    :verbose set wak?

what is the answer?

Oh, and 7.3.046 is already old hat: for W32 I recommend the "Vim without
Cream" distribution, available as gvim-<version>.exe (a self-installer,
currently for 7.3.289) at http://sourceforge.net/projects/cream/files/


Best regards,
Tony.
--
Only through hard work and perseverance can one truly suffer.

============================================
Hi Tony,

Thanks for the quick response!  I had already discovered the issue with menu
interference, so I have set winaltkeys=no from my vimrc.  This problem does
seem a little conspicuous to me, since it is not just some keys, but _every_
key.  GVIM is only responding to <M-C-k> if k is an arrow key, or some other
control key like <BS>,<Del>,<Ins>.

I will upgrade as you suggested, and see if that helps...
Thanks again.

-WES

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