Vim: Help with remapping Tab to Esc

Created on 4 Jun 2020  路  3Comments  路  Source: VSCodeVim/Vim

Describe the bug
I am trying to remap Tab to Esc with no luck:

"vim.insertModeKeyBindings": [
        {
            "before": ["<Tab>"],
            "after": ["<Esc>"]
        }
    ]

I have tried with "<Tab>", "Tab". I have also tried "before": ["j", "j"], which works but is not the keymap I am looking for. Looking in the package.json it seems "tab" is not bound when in Insert mode.

  1. Can this be worked around to bind Tab to Esc in Insert mode?
  2. or: Can Tab be bound in package.json while in Insert mode?

Environment (please complete the following information):

  • Extension (VsCodeVim) version:
  • VSCode version: 1.14.5
  • OS: Windows 10

Most helpful comment

@whnrI just found the answer to this
https://github.com/VSCodeVim/Vim/issues/2859#issuecomment-406446365

File > Preferences > Settings > Keyboard Dispatch "KeyCode"

All 3 comments

I want to jump on this with a similar request. I already have CAPSLOCK mapped to ESC in Gnome Shell (on Arch Linux). But this extension seems to sit somewhere else in general.

@whnr I have the exact same problem. I mapped CAPSLOCK as ESC accross my whole computer, for some reason it doesn't work in vscodevim. Not sure how to remap it! If anyone one knows that would be amazing thanks!

@whnrI just found the answer to this
https://github.com/VSCodeVim/Vim/issues/2859#issuecomment-406446365

File > Preferences > Settings > Keyboard Dispatch "KeyCode"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

WangRongda picture WangRongda  路  3Comments

waltiam picture waltiam  路  3Comments

ACollectionOfAtoms picture ACollectionOfAtoms  路  3Comments

orn688 picture orn688  路  3Comments

gerardmrk picture gerardmrk  路  3Comments