This is a combination of settings and keyboard shortcuts. Some of them are just VIM shortcuts.
Shortcut | Description |
---|---|
⌘ + 1 | Go to split 1 |
⌘ + 2 | Go to split 2 |
⌘ + j | Toggle terminal. (Also alt+t, ctrl+`) |
⌘ + b | Toggle sidebar |
⌘ + d | Select next occurrence |
⌘ + k | Skip occurrence under the cursor. |
⌘ + \ | Split right. |
⌘ + e | Recent files. (You need to hold it) |
shift + h | Go to left tab |
shift + l | Go to right tab |
shift + | | Vertical split |
shift + _ | Horizontal split |
shift + d | Delete until end of the line |
shift + f | Find in files |
⌘ + shift + e | Toggle focus on file explorer. |
space + e | Toggle sidebar. (Same as ⌘ + b) |
ga | Select all occurences. |
gb | Select next occurences. |
VIM Settings
"vim.normalModeKeyBindings": [
{
"before": [":"],
"commands": ["workbench.action.showCommands"],
"silent": true
},
{
"before": ["g", "a"],
"commands": ["editor.action.selectHighlights"]
},
{
"before": ["H"], // Focus previous tab at the left
"commands": ["workbench.action.previousEditor"]
},
{
"before": ["L"], // Focus next tab at the right
"commands": ["workbench.action.nextEditor"]
},
{
"before": ["Q"] // Close current tab "after": ["<C-w>", "q"]
},
{
"before": ["<C-h>"], // Focus split window at left
"commands": ["workbench.action.focusLeftGroup"]
},
{
"before": ["<C-j>"], // Focus split window at right
"commands": ["workbench.action.focusBelowGroup"]
},
{
"before": ["<C-k>"], // Focus split window at above
"commands": ["workbench.action.focusAboveGroup"]
},
{
"before": ["<C-l>"], // Focus split window at below
"commands": ["workbench.action.focusRightGroup"]
},
{
"before": ["|"], // Split tab vertically
"after": ["<C-w>", "v"]
},
{
"before": ["_"], // Split tab horizontally
"after": ["<C-w>", "s"]
},
{
"before": ["<leader>", "f"], // Search text
"commands": ["workbench.action.findInFiles"]
},
{
"before": ["<leader>", "e"],
"commands": ["workbench.view.explorer"]
}
],
"vim.insertModeKeyBindingsNonRecursive": [
{
"before": ["<C-s>"],
"commands": [
{ "command": "workbench.action.files.save" },
{ "command": "extension.vim_escape" }
]
}
]
Keyboard shortcuts
[
{
"key": "cmd+s",
"command": "macros.saveAndExitVimInsertMode"
},
{
"key": "cmd+e",
"command": "workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup"
},
{
"key": "space e",
"command": "workbench.action.toggleSidebarVisibility",
"when": "filesExplorerFocus && !inputFocus"
},
{
"key": "a",
"command": "explorer.newFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "f",
"command": "explorer.newFolder",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "r",
"command": "renameFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "x",
"command": "filesExplorer.cut",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "y",
"command": "filesExplorer.copy",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
},
{
"key": "p",
"command": "filesExplorer.paste",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
}
]
[
{
"key": "ctrl+shift+g",
"command": "-workbench.view.scm"
},
{
"key": "ctrl+alt+1",
"command": "gitlens.views.repositories:gitlens.focus"
},
{
"key": "cmd+e",
"command": "workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup"
},
{
"key": "ctrl+shift+right",
"command": "workbench.action.splitEditorRight"
},
{
"key": "ctrl+shift+left",
"command": "workbench.action.splitEditorLeft"
},
{
"key": "ctrl+shift+up",
"command": "workbench.action.splitEditorUp"
},
{
"key": "ctrl+shift+down",
"command": "workbench.action.splitEditorDown"
},
{
"key": "ctrl+shift+right",
"command": "workbench.action.moveEditorToRightGroup"
},
{
"key": "ctrl+shift+left",
"command": "workbench.action.moveEditorToLeftGroup"
},
{
"key": "ctrl+shift+up",
"command": "workbench.action.moveEditorToAboveGroup"
},
{
"key": "ctrl+shift+down",
"command": "workbench.action.moveEditorToBelowGroup"
},
{
"key": "alt+t",
"command": "workbench.action.terminal.toggleTerminal",
"when": "terminal.active"
},
{
"key": "ctrl+`",
"command": "-workbench.action.terminal.toggleTerminal",
"when": "terminal.active"
}
]