Skip to content

Instantly share code, notes, and snippets.

@huynle
Last active November 18, 2019 23:53
vscode keybinding for vim
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+h",
"command": "workbench.action.navigateLeft"
},
{
"key": "ctrl+l",
"command": "workbench.action.navigateRight",
"when": "!terminalFocus"
},
{
"key": "ctrl+k",
"command": "workbench.action.navigateUp"
},
{
"key": "ctrl+j",
"command": "workbench.action.navigateDown"
},
{
"key": "ctrl+l",
"command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus"
},
{
"key": "ctrl+h",
"command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus"
},
{
"key": "ctrl+w k",
"command": "workbench.action.moveEditorToAboveGroup"
},
{
"key": "ctrl+w j",
"command": "workbench.action.moveEditorToBelowGroup"
},
{
"key": "ctrl+w h",
"command": "workbench.action.moveEditorToLeftGroup"
},
{
"key": "ctrl+w l",
"command": "workbench.action.moveEditorToRightGroup"
},
{
"key": "ctrl+w =",
"command": "workbench.action.evenEditorWidths"
},
{
"key": "ctrl+w z",
"command": "workbench.action.minimizeOtherEditors"
},
{
"key": "ctrl+b",
"command": "-extension.vim_ctrl+b",
"when": "editorTextFocus && vim.active && vim.use<C-b> && !inDebugRepl && vim.mode != 'Insert'"
},
{
"key": "ctrl+k",
"command": "-extension.vim_ctrl+k",
"when": "editorTextFocus && vim.active && vim.use<C-k> && !inDebugRepl"
},
{
"key": "ctrl+b b",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+b",
"command": "-workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+b a",
"command": "workbench.action.toggleActivityBarVisibility"
},
{
"key": "ctrl+b f",
"command": "workbench.files.action.showActiveFileInExplorer"
},
{
"key": "ctrl+b n",
"command": "workbench.action.nextSideBarView"
},
{
"key": "ctrl+b p",
"command": "workbench.action.previousSideBarView"
},
{
"key": "ctrl+b m",
"command": "workbench.action.toggleMenuBar"
},
{
"key": "ctrl+b s",
"command": "workbench.action.toggleStatusbarVisibility"
},
{
"key": "ctrl+b l",
"command": "workbench.action.toggleSidebarPosition"
},
{
"key": "ctrl+b e",
"command": "workbench.files.action.focusFilesExplorer"
},
{
"key": "ctrl+b r",
"command": "search.action.focusSearchList"
},
{
"key": "meta+l",
"command": "-workbench.debug.panel.action.clearReplAction",
"when": "inDebugRepl"
},
{
"key": "j",
"command": "list.focusDown",
"when": "listFocus"
},
{
"key": "k",
"command": "list.focusUp",
"when": "listFocus"
},
{
"key": "l",
"command": "list.select",
"when": "explorerViewletVisible && filesExplorerFocus"
},
{
"key": "o",
"command": "list.toggleExpand",
"when": "listFocus"
},
{
"key": "ctrl+j",
"command": "selectNextSuggestion",
"when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
},
{
"key": "ctrl+k",
"command": "selectPrevSuggestion",
"when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
},
{
"key": "ctrl+j",
"command": "workbench.action.quickOpenNavigateNext",
"when": "inQuickOpen"
},
{
"key": "ctrl+k",
"command": "workbench.action.quickOpenNavigatePrevious",
"when": "inQuickOpen"
},
{
"key": "right",
"command": "workbench.action.increaseViewSize",
},
{
"key": "left",
"command": "workbench.action.decreaseViewSize",
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment