On 31/07/09 03:54, Pablo Giménez Pizarro wrote:
>
> Hi
> I am testing some key mappings I usually use under UNIX in windows to
> get my config file ready for windows.
> I am running windows through a virtual machine using Parallels Desktop
> on a Mac.
> More or less all the keymaps works fine using vim7.2 in my virtual
> windows, but all the keymaps involving the Alt and Ctrl modifiers fails.
> Seems that always the menu bar of the gvim window takes the focus.
> A couple of example of keymaps I am trying to use:
> noremap<C-M-o>  :browse tabnew<CR>
> noremap<C-M-t>  :tabnew<CR>
> noremap<C-M-w>  :confirm tabclose<CR>
>
> I have also set the winaltkeys option to "no".
>
> Any ideas????
> thx

Maybe "something" intercepts the keycode before it reaches Vim? To test 
that, open an empty Insert-mode window

        :new

then hit Ctrl-V followed by one of the "problematic" codes. (If you use 
Ctrl-V to paste, then use Ctrl-Q here in its stead.) If nothing happens, 
then the keycode didn't reach Vim. If something gets inserted, compare 
with the code for the same key with different modifiers, e.g. <C-M-o> 
with <C-O>, <M-o> etc. Maybe also with the output of

        :echo "\<C-M-o>"

which on my machine gives <8f> displayed in blue, meaning it is not a 
printable character. (Similarly for <C-M-t> etc.)

In general though, it is recommended to use F keys (especially "bare" 
and "shifted" F keys) for mappings in Vim, as these react in more 
constant fashion across all platforms and window-managers.


Best regards,
Tony.
-- 
hundred-and-one symptoms of being an internet addict:
100. The most exciting sporting events you noticed during summer 1996
     was Netscape vs. Microsoft.

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

Reply via email to