On 26/11/08 16:24, anhnmncb wrote:
> Tony Mechelynck (2008-11-26 16:10 +0100) wrote:
>
>> On 26/11/08 15:50, anhnmncb wrote:
>>> On 2008-11-26, Teemu Likonen wrote:
>>>> anhnmncb (2008-11-26 09:10 +0000) wrote:
>>>>
>>>>> As title, I don't know how to bind windows key in vim.
>>>> As far as I know, it's not possible.
>>> Hmm, so it should be a feature request :)
>> To see if Vim is at all able to see that you have hit the Windows key,
>> 1) make sure you have 'showcmd' on
>> 2) start Insert mode
>> 3) hit Ctrl-V (or Ctrl-Q if your Ctrl-V is remapped to the "paste"
>> operation). You ought to see ^V (or maybe ^Q) near bottom-right of the
>> Vim screen.
>> 4) hit the Windows key. If you still see ^V (or ^Q) at bottom right it
>> means your OS hasn't passed the Windows keypress to Vim, so there's
>> nothing you can bind it to as far as Vim is concerned. Otherwise you
>> should see the keycode newly inserted into your current edit buffer. In
>> that case you can use that as the {lhs} of a mapping and that mapping
>> will be triggered whenever you hit the Windows key in the appropriate mode.
>
> <win-;> has the similar behavior with<M-;> when in insert mode here.
>
> Yes,<win> will not pass to vim because it's bind to windows menu by OS,
> I think<win-;> can pass to vim, but I don't know how to let vim know
> it.
>
>>
>> Best regards,
>> Tony.
Try repeating the experiment after
:set winaltkeys=no
Best regards,
Tony.
--
You better believe that marijuana can cause castration. Just suppose
your girlfriend gets the munchies!
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---