On Wednesday, December 11, 2013 11:00:08 AM UTC+9, Tony Mechelynck wrote:
> On most non-English keyboards, hitting the ^ _key_ together with Ctrl 
> does not produce the Ctrl-^ _code_.
> See in the vim_use thread "Ctrl-] doesn't work ?" the original post and 
> my answer, both dated 2013-12-04. As a summary, you can solve this 
> problem the easy way or the hard way, but neither requires modification 
> of the source code:
> - The hard way: Find which key or key-combination produces the Ctrl-^ 
> code on your keyboard. Maybe there isn't any, or maybe it requires some 
> unlikely combination like AltGr+Ctrl+something. On my Belgian keyboard, 
> used on a Linux OS, it is AltGr+Ctrl+§ (where § is "unshifted 6" and 
> AltGr+§ produces non-dead-key ^).
> - The easy way: Use a mapping, for instance (for use in all modes)
>       :map  <F8> <C-^>
>       :map! <F8> <C-^>
> They are not incompatible: if you use "the easy way" first, and later 
> find out which key combo does it, you may use whichever of these you 
> prefer. For commands or characters that I use often, I prefer a 
> single-key mapping to a three-key combo with AltGr+Ctrl, while OTOH for 
> stuff that I rarely use (such as the copyright mark, which is 
> AltGr+Shift+c here) a three-key combo is OK.

Note that this is a part just for windows.
If you want to know the code, :echo char2nr(getchar()) will help you.
win32_kbd_patch_key() should replace 'pch' into we expected with ToAscii(), I 
guess.

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui