Describe the bug
A mapping using the control modifier is ignored at the hit-enter prompt when modifyOtherKeys is enabled.
To Reproduce
Start an xterm terminal, and run this shell command:
vim -Nu NONE +'nno <c-b> :echom "C-b was pressed"<cr>' +hi
Press C-b: no message is printed on the command-line, nor logged in the output of :messages.
Expected behavior
"C-b was pressed" is printed on the command-line, and logged in the output of :messages.
Environment
Additional context
The issue disappears if the modifyOtherKeys feature is disabled.
vim -Nu NONE --cmd 'let [&t_TI, &t_TE] = ["", ""]' +'nno <c-b> :echom "C-b was pressed"<cr>' +hi
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
I cannot reproduce the problem, it works with and without modifyOtherKeys enabled.
I'm on the latest commit (8.2.0836), and I can reproduce without:
-Nu NONE)bash --norc --noprofile)~/.Xresources)--with-features=huge (./configure --with-features=huge)Here is a gif when modifyOtherKeys is enabled:
And here is a gif when modifyOtherKeys is disabled:
Another thing that I've just noticed. The mapping works if <c-b> is replaced with a literal C-b character (obtained after pressing C-v C-b).
I guess the issue is somehow linked to what you said here about the fact that a <C-b> mapping exists in two forms; a simplified one and a non-simplified one. It seems that the non-simplified form doesn't work at the hit-enter prompt.
Ah, I missed the part about this being at the hit enter prompt. Hmm, I suppose much more must have already been failing there.