Skip to content

Instantly share code, notes, and snippets.

@mattroyer
Last active April 10, 2023 16:33
Show Gist options
  • Save mattroyer/00693b8821af9adb3886e66006a6546d to your computer and use it in GitHub Desktop.
Save mattroyer/00693b8821af9adb3886e66006a6546d to your computer and use it in GitHub Desktop.
// Place your key bindings in this file to override the defaults
[
{
"key": "shift+h",
"command": "workbench.action.focusLeftGroup",
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'"
},
{
"key": "shift+l",
"command": "workbench.action.focusRightGroup",
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'"
},
{
"key": "cmd+h",
"command": "workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus"
},
{
"key": "cmd+l",
"command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus"
},
{
"key": "n n",
"command": "extension.advancedNewFile",
"when": "editorTextFocus && textInputFocus && vim.active && vim.mode != 'Insert' && vim.mode != 'Visual'"
},
{
"key": ", p",
"command": "workbench.action.quickOpenPreviousEditor",
"when": "!editorTextFocus && vim.active && vim.mode != 'Insert' && vim.mode != 'Visual'"
},
{
"key": ", x",
"command": "workbench.action.closeActiveEditor",
"when": "!editorTextFocus && vim.active && vim.mode != 'Insert' && vim.mode != 'Visual'"
},
{
"key": ", d",
"command": "workbench.action.toggleSidebarVisibility",
"when": "!editorTextFocus && vim.active && vim.mode != 'Insert' && vim.mode != 'Visual'"
},
{
"key": ", o p",
"command": "workbench.action.showCommands",
"when": "!editorTextFocus && vim.active && vim.mode != 'Insert' && vim.mode != 'Visual'"
},
{
"key": "cmd+k",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
},
{
"key": ", t",
"command": "workbench.action.terminal.toggleTerminal",
"when": "terminalFocus && vim.active && vim.mode != 'Insert'"
},
{
"key": ", w",
"command": "editor.action.insertCursorAtEndOfEachLineSelected",
"when": "editorTextFocus && vim.active && vim.mode == 'Visual'"
},
{
"key": "cmd+t",
"command": "workbench.action.terminal.split",
"when": "terminalFocus && vim.active && vim.mode != 'Insert'"
},
{
"key": "shift+j",
"command": "selectNextSuggestion",
"when": "suggestWidgetVisible"
},
{
"key": "shift+k",
"command": "selectPrevSuggestion",
"when": "suggestWidgetVisible"
},
{
"key": "shift+j",
"command": "workbench.action.quickOpenSelectNext",
"when": "inQuickOpen"
},
{
"key": "shift+k",
"command": "workbench.action.quickOpenSelectPrevious",
"when": "inQuickOpen"
},
{
"key": "shift+cmd+f",
"command": "sublsearch.search"
},
{
"key": "cmd+enter",
"command": "editor.action.openLink",
"when": "editorTextFocus && textInputFocus && vim.active && vim.mode != 'Insert' && vim.mode != 'Visual'"
},
{
"key": "shift+cmd+enter",
"command": "dendron.goto"
},
]
{
"breadcrumbs.enabled": false,
"editor.bracketPairColorization.enabled": true,
"editor.cursorBlinking": "solid",
"editor.renderWhitespace": "none",
"editor.cursorSmoothCaretAnimation": "off",
"editor.cursorWidth": 2,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.detectIndentation": false,
"editor.formatOnSave": true,
"editor.guides.bracketPairs": "active",
"editor.insertSpaces": true,
"editor.minimap.enabled": false,
"editor.minimap.maxColumn": 200,
"editor.minimap.renderCharacters": false,
"editor.minimap.showSlider": "always",
"editor.smoothScrolling": true,
"editor.tabSize": 2,
"emmet.includeLanguages": {
"vue-html": "html"
},
"explorer.openEditors.visible": 0,
"files.hotExit": "off",
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"search.quickOpen.includeHistory": false,
"search.useIgnoreFiles": false,
"search.exclude": {
"**/vendor": true
},
"sync.gist": "a5e4ea1d5c75298123e369e46bed7a90",
"telemetry.telemetryLevel": "off",
"[markdown]": {
"editor.quickSuggestions": {
"comments": "on",
"strings": "on",
"other": "on"
},
"editor.wordBasedSuggestions": false,
"editor.tabSize": 2,
"editor.suggest.showSnippets": true,
"files.trimTrailingWhitespace": false
},
"vim.cursorStylePerMode.normal": "block-outline",
"vim.useCtrlKeys": true,
"vim.easymotion": true,
"vim.incsearch": true,
// "vim.insertModeKeyBindings": [
// {
// "before": ["j", "j"],
// "after": ["<Esc>"]
// }
// ],
"vim.hlsearch": true,
"vim.leader": ",",
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["u"],
"after": [],
"commands": [
{
"command": "undo"
}
]
},
{
"before": ["U"],
"after": [],
"commands": [
{
"command": "redo"
}
]
},
{
"before": ["<leader>", "d"],
"commands": ["workbench.action.toggleSidebarVisibility"]
},
{
"before": ["j"],
"after": ["g", "j"]
},
{
"before": ["k"],
"after": ["g", "k"]
},
{
"before": ["<leader>", "p"],
"after": [
{
"key": "down"
}
],
"commands": ["workbench.action.quickOpenPreviousEditor"]
},
{
"before": ["<leader>", "t"],
"commands": ["workbench.action.terminal.focus"]
},
{
"before": ["<leader>", "x"],
"after": [],
"commands": ["workbench.action.closeActiveEditor"]
},
{
"before": ["<leader>", "2"],
"commands": ["workbench.action.splitEditor"]
},
{
"before": ["<leader>", "1"],
"commands": ["workbench.action.editorLayoutSingle"]
},
{
"before": ["<leader>", "z"],
"commands": ["workbench.action.toggleZenMode"]
},
{
"before": ["<leader>", "o", "p"],
"after": [],
"commands": ["workbench.action.showCommands"]
}
],
"vim.visualModeKeyBindingsNonRecursive": [
{
"before": ["j"],
"after": ["g", "j"]
},
{
"before": ["k"],
"after": ["g", "k"]
}
],
"window.restoreWindows": "none",
"window.title": "${dirty} ${activeEditorLong}${separator}${rootName}",
"workbench.colorCustomizations": {
"tab.activeBackground": "#303030",
"tab.inactiveBackground": "#222222",
"editorCursor.foreground": "#efefefaf"
},
"workbench.editor.enablePreviewFromQuickOpen": false,
"workbench.settings.enableNaturalLanguageSearch": false,
"workbench.startupEditor": "none",
"workbench.statusBar.visible": true,
"zenMode.fullScreen": false,
"zenMode.centerLayout": false,
"workbench.editor.enablePreview": true,
"workbench.editorAssociations": {
"*.ipynb": "jupyter.notebook.ipynb"
},
"vim.easymotionMarkerForegroundColorOneChar": "#0000",
"vim.joinspaces": false,
"window.openFilesInNewWindow": "off",
"window.openFoldersInNewWindow": "off",
"terminal.integrated.allowChords": false,
"security.workspace.trust.untrustedFiles": "open",
"prettier.requireConfig": true,
"explorer.autoReveal": false,
"workbench.editor.revealIfOpen": true,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"vetur.ignoreProjectWarning": true,
"code-runner.runInTerminal": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"jupyter.variableQueries": [
{
"notebook.editorBackground": "#fff"
}
],
"redhat.telemetry.enabled": false,
"editor.colorDecorators": false,
"yaml.customTags": [
"!And",
"!And sequence",
"!If",
"!If sequence",
"!Not",
"!Not sequence",
"!Equals",
"!Equals sequence",
"!Or",
"!Or sequence",
"!FindInMap",
"!FindInMap sequence",
"!Base64",
"!Join",
"!Join sequence",
"!Cidr",
"!Ref",
"!Sub",
"!Sub sequence",
"!GetAtt",
"!GetAZs",
"!ImportValue",
"!ImportValue sequence",
"!Select",
"!Select sequence",
"!Split",
"!Split sequence"
],
"aws.profile": "profile:sandbox"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment