Vim: Switching escape and capslock

Created on 20 Jul 2018  路  2Comments  路  Source: VSCodeVim/Vim

Describe the bug
When the keyboard has a custom mapping, VSCodeVim do not use it.
I am switching my capslock and escape keys through the xkbmap command

To Reproduce
Steps to reproduce the behavior:

  1. Fresh install of VSCode + VSCodeVim
  2. Run the command
    $ setxkbmap -option "caps:swapescape"
  3. Enter insert mode
  4. Press caps lock, nothing happens
  5. Press escape, caps lock is turned on and VSCodeVim exit insert mode

Expected behavior
Since the key is remapped to capslock, this key should work and not the original escape one.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 0.15.2
  • VSCode version: 1.25.1
  • OS: ArchLinux / Latest updates

Additional context
This is probably a reccurent problem since lots of vim users like to switch thoses keys because it's easier to use

upstreavscode

Most helpful comment

can you try this "keyboard.dispatch": "keyCode"

https://github.com/Microsoft/vscode/wiki/Keybinding-Issues#troubleshoot-linux-keybindings

All 2 comments

can you try this "keyboard.dispatch": "keyCode"

https://github.com/Microsoft/vscode/wiki/Keybinding-Issues#troubleshoot-linux-keybindings

This is indeed working, sorry for the trouble

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ACollectionOfAtoms picture ACollectionOfAtoms  路  3Comments

typeoneerror picture typeoneerror  路  3Comments

ghost picture ghost  路  3Comments

cckowin picture cckowin  路  3Comments

jaredly picture jaredly  路  3Comments