[vim/vim] Ctrl-[ don't escape from insert mode (like Esc) on Belgian keyboard (Issue #10454)

23 views
Skip to first unread message

Vivian De Smedt

unread,
May 20, 2022, 4:07:00 AM5/20/22
to vim/vim, Subscribed

Steps to reproduce

On a computer with a Belgian keyboard using gVim

  1. Start Vim
  2. Enter in insert mode
  3. Type: Ctrl-[

Expected behaviour

You should be back in Normal mode but you stay in insert mode.

Version of Vim

8.2.4943 on Windows 10 8.2.3995 on Ubuntu 22.04

Environment

Operating System: Windows 10 or Ubuntu 22.04

I can only reproduce the problem on gVim (on Vim the problem do not occur)

Logs and stack traces

No response


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/10454@github.com>

Vivian De Smedt

unread,
May 20, 2022, 5:30:27 AM5/20/22
to vim/vim, Subscribed

I have compiled different tags of Vim on Windows 10.
I don't have the problem at version 8.2.4006
But I do have the problem at version 8.2.4007 and later


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/10454/1132685432@github.com>

Christian Brabandt

unread,
May 20, 2022, 5:31:47 AM5/20/22
to vim/vim, Subscribed

I think this is a duplicate of #10324


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/10454/1132686684@github.com>

Vivian De Smedt

unread,
Jun 29, 2022, 4:50:40 AM6/29/22
to vim/vim, Subscribed

I cross checked and the issue is present in the new Vim 9.0. I'm afraid without the problem solved I will not be able to use gVim 9.0. What would you suggest me to push the resolution of this problem?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/10454/1169707250@github.com>

Bram Moolenaar

unread,
Jun 29, 2022, 5:24:10 AM6/29/22
to vim/vim, Subscribed

@LemonBoy was working on a solution, but it didn't get completed yet.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/10454/1169744422@github.com>

Vivian De Smedt

unread,
Jun 30, 2022, 1:08:20 AM6/30/22
to vim/vim, Subscribed

Thanks! Let me know if I can contribute in any ways.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/10454/1170768995@github.com>

Anton Sharonov

unread,
Jul 3, 2022, 7:47:50 PM7/3/22
to vim...@googlegroups.com
Hi Vivian

On Wed, Jun 29, 2022 at 10:08:14PM -0700, Vivian De Smedt wrote:
> Thanks! Let me know if I can contribute in any ways.

Just created my first PR https://github.com/vim/vim/pull/10658
)))) for GTK version which fixes Ctrl+[ for you on linux (i
believe at least, i have just enabled belgian keyboard layout on
my opensuse machine and did some quick tests with it)

Anyway it seems they messed up GTK back-end quite some time ago
already in that respect. Motif back-end (+formerly Athena, now
disappeared - dont know why) still works perfectly but looks
quite ugly - Motif is pretty outdated graphical library as of
today.

For windows part of the problem we need to wait for somebody else
- chances are not so high that I will have similarly big time
slot of spare time to play with mingw compilers on cygwin, and it
seems that checking that on windows will be completely new story
- from scratch again again - seems that every kind of GUI
back-end has subtle differences of obtaining key-codes from
underlying levels of the operating system.

Anyway, it is extremely nice feeling - to know that I am not
alone in PSI who really enjoys using VIM ))))

With best regards, Anton

>
> --
> Reply to this email directly or view it on GitHub:
> https://github.com/vim/vim/issues/10454#issuecomment-1170768995
> You are receiving this because you are subscribed to this thread.
>
> Message ID: <vim/vim/issues/10454/11707...@github.com>
>
> --
> --
> 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 vim_dev+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/10454/1170768995%40github.com.

Bram Moolenaar

unread,
Jul 4, 2022, 5:48:31 AM7/4/22
to vim...@googlegroups.com, Anton Sharonov

Anton Sharonov wrote:

> On Wed, Jun 29, 2022 at 10:08:14PM -0700, Vivian De Smedt wrote:
> > Thanks! Let me know if I can contribute in any ways.
>
> Just created my first PR https://github.com/vim/vim/pull/10658
> )))) for GTK version which fixes Ctrl+[ for you on linux (i
> believe at least, i have just enabled belgian keyboard layout on
> my opensuse machine and did some quick tests with it)
>
> Anyway it seems they messed up GTK back-end quite some time ago
> already in that respect. Motif back-end (+formerly Athena, now
> disappeared - dont know why) still works perfectly but looks
> quite ugly - Motif is pretty outdated graphical library as of
> today.
>
> For windows part of the problem we need to wait for somebody else
> - chances are not so high that I will have similarly big time
> slot of spare time to play with mingw compilers on cygwin, and it
> seems that checking that on windows will be completely new story
> - from scratch again again - seems that every kind of GUI
> back-end has subtle differences of obtaining key-codes from
> underlying levels of the operating system.
>
> Anyway, it is extremely nice feeling - to know that I am not
> alone in PSI who really enjoys using VIM ))))

Thanks for looking into this. I think I'll just include the PR, and
await users checking this. Perhaps there are more key combinations that
need to be fixed. Looking for GDK_KEY_dead_circumflex I see various
tables and weird key handling.

--
George: "I just got a new set of golf clubs for my wife!"
John: "Great trade!"

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Bram Moolenaar

unread,
Jul 4, 2022, 5:56:31 AM7/4/22
to vim/vim, Subscribed

Patch 9.0.0033 fixes this for GTK, but it is still a problem for MS-Windows


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/10454/1173610481@github.com>

Vivian De Smedt

unread,
Jul 4, 2022, 7:58:55 AM7/4/22
to vim/vim, Subscribed

Thanks for the update :-)


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/10454/1173733206@github.com>

Tony Mechelynck

unread,
Jul 4, 2022, 9:56:19 AM7/4/22
to vim/vim, Subscribed

WFM on gvim (Big, GTK3) 9.0.32 i.e. without the patch. Don't forget, however, that on a Belgian keyboard, [ is AltGr+dead-circumflex, therefore Ctrl+[ is Ctrl+AltGr+dead-circumflex.

Best regards,
Tony.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/10454/1173851629@github.com>

Vivian De Smedt

unread,
Jul 6, 2022, 7:04:32 AM7/6/22
to vim/vim, Subscribed

Hi Tony,

I have tested version 9.0.35 and the problem is still present in gVim.

On gVim 8.2 I can escape using: Ctrl+DeadCircumflex
On gVim 9.0 I can't escape neither Ctrl+DeadCircumflex nor Ctrl+AltGr+DeadCircumflex

Remark: The problem is not present on Vim 9.0

Best regards,
Vivian


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/10454/1176087684@github.com>

Vivian De Smedt

unread,
Jul 11, 2022, 11:18:08 AM7/11/22
to vim/vim, Subscribed

Anton has created a azerty_ctrl_dead branch in his repository https://github.com/haron13-2019/vim/tree/azerty_ctrl_dead and made a Pull Request (#10687)
This seems to solve the problem on Belgian keyboards.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/10454/1180541712@github.com>

Bram Moolenaar

unread,
Jul 26, 2022, 4:27:04 PM7/26/22
to vim/vim, Subscribed

Closed #10454 as completed via 3f02667.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/10454/issue_event/7067919909@github.com>

Reply all
Reply to author
Forward
0 new messages