Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    Thx a lot for this. Everything works great now. I wonder why Windows chooses to send these weird combinations to the terminal instead of just the normal backspace keycodes. The fact that terminal programs can differentiate between Shift + BS and Ctrl + BS and just BS is strange as well, is the same thing possible on Linux for example? If so, how does Linux handle that?
    – Nik Tedig
    Commented Jan 16, 2022 at 22:06
  • Great to hear it worked. This was a frustrating problem for me, too. Terminals in Windows all vary slightly in their implementations, and interpretation of keyboard-input is unfortunately one of those differences. In my experience, CMD.exe, powershell, GitBash terminal, vim (windows) terminal, and Gvim all give different behaviour for certain keys. Linux and MacOS have a native BASH terminal, so there doesn't need to be different emulations made at different times by different people for different purposes. One shell, one standard (one of the reasons developers tend to prefer unix systems).
    – KamRa
    Commented Jan 18, 2022 at 20:03
  • When I press Shift+Backspace in my keyboard I get Îy. I tried adding imap Îy <BS> in my vimrc file but it doesn't help...
    – user32882
    Commented Apr 25, 2022 at 9:22