On Tuesday, June 11, 2013 5:11:35 PM UTC+2, Ben Fritz wrote:
> On Tuesday, June 11, 2013 5:25:42 AM UTC-5, mattn wrote:
> 
> > On Tuesday, June 11, 2013 1:33:45 PM UTC+9, [email protected] wrote:
> 
> > > Status: New
> 
> > > Owner: ----
> 
> > > Labels: Type-Defect Priority-Medium
> 
> > > New issue 141 by [email protected]: <C-@>
> 
> > > 
> 
> > > http://code.google.com/p/vim/issues/detail?id=141
> 
> > 
> 
> > I could handle CTRL-@ with following patch.
> 
> > 
> 
> > https://gist.github.com/mattn/5755848
> 
> > 
> 
> > I found that some keys doesn't handle correctly at os_win32.c:796 .
> 
> > 
> 
> > Ctrl-6 fire Ctrl-^
> 
> > Ctrl-2 fire Ctrl-@
> 
> > Ctrl-- fire Ctrl-_
> 
> > 
> 
> > I don't know why this code is needed. My patch can handle all keys above.
> 
> > 
> 
> 
> 
> CTRL-6 at least is probably intentional:
> 
> 
> 
>                                                       *CTRL-^* *CTRL-6*
> 
> CTRL-^                        Edit the alternate file.  Mostly the alternate 
> file is
> 
>                       the previously edited file.  This is a quick way to
> 
>                       toggle between two files.  It is equivalent to ":e #",
> 
>                       except that it also works when there is no file name.
> 
> 
> 
>                       If the 'autowrite' or 'autowriteall' option is on and
> 
>                       the buffer was changed, write it.
> 
>                       Mostly the ^ character is positioned on the 6 key,
> 
>                       pressing CTRL and 6 then gets you what we call CTRL-^.
> 
>                       But on some non-US keyboards CTRL-^ is produced in
> 
>                       another way.
> 
> 
> 
> Possibly the others have similar reasons to exist.

Hello
I tested the patch from github, using the link, it doesn't work for vim console 
win32 version.
But Ctrl-2 combination it work.
For a French keyboard Ctrl-2 combination doesn't work, because the keystroke 2 
give é, (Shift-2 combination give 2), and Ctrl-Shift-2 doesn't work. But when 
using Caps-Lock on, Ctrl-2 work and send Ctrl-@. For information, on a french 
keyboard, @ key is obtained from combination of Alt GR(Alt key on the Right) 
and 0 key.
Best regards !

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