Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"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
},
}
@JoakoV3
Copy link
Author

JoakoV3 commented Feb 9, 2022

Updated version

{
  "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": ["<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-c>": false,
    // Cut
    "<C-x>": false,
    // Paste
    "<C-v>": false,
    "<C-z>": false,
    "<C-y>": false

},
"sync.gist": "0347f564969e6ea0530a7658bdcf7395",
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "One Monokai",

}

@slim-python
Copy link

slim-python commented Oct 18, 2022

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.

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