My Vscode Vim config and keybinding

2 min read Original article ↗
[ { "key": "ctrl+j", // toggle terminal "command": "workbench.action.terminal.toggleTerminal", }, { "key": "h", // scrol left through hover info "command": "editor.action.scrollLeftHover", "when": "editorHoverFocused" }, { "key": "j", // scrol down through hover info "command": "editor.action.scrollDownHover", "when": "editorHoverFocused" }, { "key": "k", // scrol up through hover info "command": "editor.action.scrollUpHover", "when": "editorHoverFocused" }, { "key": "l", // scrol right through hover info "command": "editor.action.scrollRightHover", "when": "editorHoverFocused" }, { "key": "space e", // toggle file explorer "command": "workbench.action.toggleSidebarVisibility", "when": "filesExplorerFocus && !inputFocus" }, { "key": "a", // new file in file explorer "command": "explorer.newFile", "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus" }, { "key": "f", // new folder "command": "explorer.newFolder", "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus" }, { "key": "r", // rename file "command": "renameFile", "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus" }, { "key": "x", // cut file "command": "filesExplorer.cut", "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus" }, { "key": "y", // yank/copy file "command": "filesExplorer.copy", "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus" }, { "key": "p", // paste file in file explorer "command": "filesExplorer.paste", "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus" }, { "key": "ctrl+p", "command": "workbench.actions.view.problems", // open diagnostics }, // Move line up and down { "key": "alt+j", "command": "editor.action.moveLinesDownAction", // move line down "when": "editorFocus" }, { "key": "alt+k", "command": "editor.action.moveLinesUpAction", // move line up "when": "editorFocus" }, { "key": "space space", "command": "workbench.action.quickOpen", // open quick file access "when": "!editorFocus && !editorIsOpen && !terminalFocus" }, ]