Skip to content

Instantly share code, notes, and snippets.

@adamiak
Created November 14, 2016 21:01
Show Gist options
  • Save adamiak/a3981602cfc6b737f14993a27cd4d391 to your computer and use it in GitHub Desktop.
Save adamiak/a3981602cfc6b737f14993a27cd4d391 to your computer and use it in GitHub Desktop.
// Place your key bindings in this file to overwrite the defaults
[
{ "key": "[ a", "command": "cursorHome",
"when": "editorTextFocus && vim.mode != 'Insert Mode' && !inDebugRepl" },
{ "key": "[ s", "command": "cursorEnd",
"when": "editorTextFocus && vim.mode != 'Insert Mode' && !inDebugRepl" },
{ "key": "[ w", "command": "workbench.action.files.save",
"when": "editorTextFocus && vim.mode != 'Insert Mode' && !inDebugRepl" },
{ "key": "ctrl+o", "command": "workbench.action.navigateBack",
"when": "editorTextFocus && vim.mode != 'Insert Mode' && !inDebugRepl" },
{ "key": "ctrl+i", "command": "workbench.action.navigateForward",
"when": "editorTextFocus && vim.mode != 'Insert Mode' && !inDebugRepl" },
{ "key": "[ k", "command": "editor.action.insertLineBefore",
"when": "editorTextFocus && vim.mode != 'Insert Mode' && !inDebugRepl" },
{ "key": "[ j", "command": "editor.action.insertLineAfter",
"when": "editorTextFocus && vim.mode != 'Insert Mode' && !inDebugRepl" },
{ "key": "shift+tab", "command": "extension.vim_escape",
"when": "editorTextFocus && !inDebugRepl && !suggestWidgetVisible" },
{ "key": "cmd+1", "command": "workbench.action.openEditorAtIndex1" },
{ "key": "cmd+2", "command": "workbench.action.openEditorAtIndex2" },
{ "key": "cmd+3", "command": "workbench.action.openEditorAtIndex3" },
{ "key": "cmd+4", "command": "workbench.action.openEditorAtIndex4" },
{ "key": "cmd+5", "command": "workbench.action.openEditorAtIndex5" },
{ "key": "cmd+6", "command": "workbench.action.openEditorAtIndex6" },
{ "key": "cmd+7", "command": "workbench.action.openEditorAtIndex7" },
{ "key": "cmd+8", "command": "workbench.action.openEditorAtIndex8" },
{ "key": "cmd+9", "command": "workbench.action.openEditorAtIndex9" },
{ "key": "ctrl+1", "command": "workbench.action.focusFirstEditorGroup" },
{ "key": "ctrl+2", "command": "workbench.action.focusSecondEditorGroup" },
{ "key": "ctrl+3", "command": "workbench.action.focusThirdEditorGroup" }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment