Problem
I want to use Caps_Lock as the key to exit insert mode in Visual Studio code's vim extension. I have already remapped the keys in Xorg with Xmodmap, but Visual studio doesn't seem to really matter.
My VScode settings
As you can see, I already tried with "vim.insertModeKeyBindings"
, but it only disables the Escape key, leaving me thinking that Caps_lock has another key name/keysym, but I can't seem to find it.
{
"editor.fontFamily": "'Inconsolata-g for Powerline'",
"editor.fontSize": 16,
"liveshare.authenticationProvider": "GitHub",
"vim.enableNeovim": true,
"code-runner.enableAppInsights": false,
"code-runner.runInTerminal": true,
"workbench.startupEditor": "newUntitledFile",
"workbench.editorAssociations": [
{
"viewType": "jupyter.notebook.ipynb",
"filenamePattern": "*.ipynb"
}
],
"workbench.colorTheme": "BeardedTheme Anthracite",
"extensions.autoUpdate": "onlyEnabledExtensions",
"vim.vimrc.enable": true,
"vim.vimrc.path": "$HOME/.config/nvim/init.vim",
"editor.fontWeight":"bold",
"vim.insertModeKeyBindings": [
{
"before": ["<Esc>"],
"after": ["<Caps_Lock>"]
}
]
}
Another thing i'd like to address is that i already have j,k
and their combinations to exit insert mode. Is that a default?
Huge thanks in advance to anybody offering to help!!
Capslock
, see https://mcmap.net/q/1007766/-vs-code-on-win-10-create-keybinding-for-capslock-i-j-k-l-to-act-as-arrow-buttons for some variations on capslock that I tried for a different question. – Mortgagorneovim
isn't applicable either. It's about VSCode and its Vim extension. So neither vim nor neovim. – Donell