open vim.exe, type Ctrl and -, wait sometimes, it will show like this:

The different behavier will make some bugs, such as tcomment.vim use <c-_><c-_> to comment line, but now it counld not works well.
v8.2.5157
windows 10 x64
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
this commit: [patch 8.2.5157] has not fix the bug(4e0fc89)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
pls help to check it again, tks.
@LemonBoy
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
But #10579 is, indeed, fixed (WFM, at least).
Thank you, @LemonBoy!
Though now I noticed some strange behavior related to langmap (with any value of langremap).
Using correct langmap for Russian:
set langmap=ёйцукенгшщзхъфывапролджэячсмитьбюЁЙЦУКЕНГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ;`qwertyuiop[]asdfghjkl\;'zxcvbnm\\,.~QWERTYUIOP{}ASDFGHJKL:\"ZXCVBNM<>
:set showcmd, typing "fyy correctly shows the same, but pressing the same keys being switched to Russian layout shows "<0430>yy there.nnoremap sw :echo 'Software?'<CR>, it just performs "s" (:help s) while being switched to Russian layout.I didn't pay attention to any of this before --- most probably, the behavior is not new.
I hope this information helps with further investigation.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Niva also reports: Ctrl+F or B broken since 8.2 patch 5157 in gui windows
I assume this is in a French setup.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@brammool hi,btw, I am using chinese
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
may be it's better to revert the change of patch 8.2.4807 first, then try to find a perfact solution.
I find that lots of issues about Ctrl are created recently.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
8.2.4807 has been included quite a while ago. Rolling it back now does not appear to be a good solution.
It appears 8.2.5157 is the one causing most problems now. Then there are a few remaining issues to be fixed.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Try something like the following, it fixes the problems with ctrl keys for me.
- if (len == 0 && keyboard_state[VK_CONTROL]) + if (keyboard_state[VK_CONTROL] + && (len == 0 + || (len == 1 && (ch[0] < 0x20 || ch[0] == 0x7f))))
Thanks Bram for rolling back this 'fix'. Very surprised by the regression caused, I wonder how this patch can pass the tests. If I can help in the future to add or run tests, please let me know.
Shit's hard to 'fix' properly because there are no tests at all.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
And <C-_> should really be <C-S-_> because you're also pressing the shift key, that's intended according to the comments in may_remove_shift_modifier.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
And
<C-_>should really be<C-S-_>because you're also pressing the shift key, that's intended according to the comments inmay_remove_shift_modifier.
@LemonBoy Thanks for your explanation. Yes, that might indeed be justified without historical debt. But we should at least keep the behavior of gvim and vim consistent, which is currently inconsistent, so it's a bit strange.
I'm not quite sure how macvim will behave after merging the latest vim kernel code, but at least macvim's <C-_> is consistent with vim for now.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
<C-2>, <C-6>, <C--> are special cases as can be seen in the console code. The GUI key handling doesn't seem to handle these special cases. Which is why the behaviour is different.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@char101 I see, thank you. If it is consistent, it feels that the cost of understanding is lower. After all, many people use both gui and console.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
The handling of these keys is indeed removed in 8.2.4807.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
The handling of these keys is indeed removed in 8.2.4807.
Looking at japanese keyboard layout, it indeed doesn't have
@in2and^in6, which is why<C-2>and<C-6>are mapped to<C-@>and<C-^>.
Actually I wish they were added back, 😀
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
maps have problem too.
noremap <A-s> :w!<CR>
Left Alt-s will trigger this, but Right Alt-s can't.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@LemonBoy @brammool
Hi, Sorry to bother you, may I know if this issue will be scheduled to be fixed? Thank you.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@dantezhu @char101 @zoumi
You guys might want to check #12595 where I am giving my observations on the whole affair. (I came late to the party as I only recently tried to update my Vim).
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
We will need to find a way how to move forward with this. Given the recent loss of Bram, not sure we will have time for this soon unfortunately.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
We will need to find a way how to move forward with this. Given the recent loss of Bram, not sure we will have time for this soon unfortunately.
I understand. Unfortunately, it's still severely broken.
IMHO, what's probably being incorrectly presumed here is that everyone uses the latest vim patch on Windows. Which might be far from truth, i.e. most users might still have not installed a recent vim version (perhaps, even 8.2.4807 that broke it first time!), so the volume of complaints could increase if/when it happens.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@chrisbra Following your surprising post I just learned about Bram! I also read your post on Google groups that you have an access to the project and are willing to take over, which would make you the person to address my proposal related to the patch 77fc0b0 and the following fallout:
Could we do a "soft" rollback of the patch, i.e. putting back the old handling, making it default, and define some internal variable which will allow enabling the patch behavior as an experimental feature?
This way it should preserve the same behavior for everyone who used Vim before patch without problems, and still allow people who want (and can actually) use the new behavior to work on it. I guess there is a quite lot of work to be done to make it right. And once the behaviors of the branches are the same, we may flip the switch. But it should be done after and not before the behavior is correct.
For that I would expect to have some kind of keyboard/keypress generator/simulator, built in, which would be able to check the layouts behavior in both paths and report the regressions.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #10615 as completed via 68d9472.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()