2

I'm referring to holding Ctrl and hitting Menu (which is this key), which happens by mistake sometimes.

For me it results in going back to normal mode and moving to the first non-blank character of the line.

Indeed, if I hit Ctrl+v and then Ctrl+Menu (in command line mode or insert mode), what I see is ^[[29^, where the first two chars ^[ are one atom (the same that is generated also by Escape), and the following are single chars. So I kind of understand why the combination reults in "go back to normal mode, ^[, and then to the first non-blank character, ^.

But how can I get rid of this behavior without impacting anything else?


I asked a follow up question here.

2
  • Maybe could you try to map that <kbd>Menu</kbd> key to another key. e.g. :set <S-Down>=^[[29^ Commented Jun 5, 2022 at 9:40
  • 1
    Or you could try to map the sequence to <Nop>: map ^[[29^ <Nop>. Commented Jun 5, 2022 at 9:42

1 Answer 1

3

I propose you to map the key sequence ^[[29^ to <Nop>

:noremap ^[[29^ <Nop>
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.