Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@JoakoV3
Created November 23, 2021 21:38
Show Gist options
  • Star 39 You must be signed in to star a gist
  • Fork 10 You must be signed in to fork a gist
  • Save JoakoV3/2588968e550e71b715edfeb37734c56b to your computer and use it in GitHub Desktop.
Save JoakoV3/2588968e550e71b715edfeb37734c56b to your computer and use it in GitHub Desktop.
{
"files.autoSave": "onFocusChange",
"vim.easymotion": true,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,
"vim.sneak": true,
"vim.easymotionMarkerooundColor": "#020202",
"vim.normalModeKeyBindings": [
{
"before": ["<leader>", "d"],
"after": ["d", "d"]
},
{
"before": ["<tab>"],
"commands": ["workbench.action.nextEditor"]
},
{
"before": ["<S-tab>"],
"commands": ["workbench.action.previousEditor"]
},
],
"vim.insertModeKeyBindings": [
{
"before": ["j", "k"],
"after": ["<Esc>"]
},
{
"before": ["<C-j>"],
"after": ["<Esc>"]
},
{
"before": ["<C-k>"],
"after": ["<Esc>"]
}
],
"vim.visualModeKeyBindings": [
{
"before": [">"],
"after": [">", "g", "v"]
},
{
"before": ["<"],
"after": ["<", "g", "v"]
},
],
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["<leader>", "d"],
"after": ["d", "d"]
},
{
"before": ["<C-n>"],
"commands": [":nohl"]
},
{
"before": ["<leader>", "w"],
"commands": ["workbench.action.splitEditor"]
},
{
"before": ["<leader>", "e"],
"commands": ["workbench.action.toggleSidebarVisibility"]
},
{
"before": ["<leader>", "f"],
"commands": ["revealInExplorer"]
},
{
"before": ["<leader>", "h"],
"after": ["_"]
},
{
"before": ["<leader>", "l"],
"after": ["$"]
}
],
"vim.leader": "<space>",
"vim.handleKeys": {
"<C-a>": false,
"<C-f>": false,
// VS Code new marker @ next occurence
"<C-d>": false,
// Copy
"<C-c>": false,
// Cut
"<C-x>": false,
// Paste
"<C-v>": false,
"<C-z>": false,
"<C-y>": false
},
}
@slim-python
Copy link

how would you write "jk" since you have set Esc to "jk"??

@ayush-seth
Copy link

ayush-seth commented Oct 20, 2022

how would you write "jk" since you have set Esc to "jk"??

you can type jk if you wait a little while to type k after typing j. If you press jk quickly it will go out of insert mode.

@mo-amaan
Copy link

mo-amaan commented Dec 5, 2022

or you could not use jk and rebind caps lock to esc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment