Skip to content

Instantly share code, notes, and snippets.

@KorigamiK
Created July 16, 2024 06:29
Show Gist options
  • Save KorigamiK/ae80e979a5d2a24a8212e48b5dfc0fac to your computer and use it in GitHub Desktop.
Save KorigamiK/ae80e979a5d2a24a8212e48b5dfc0fac to your computer and use it in GitHub Desktop.
vsocde config
[
{
"command": "editor.action.moveLinesDownAction",
"key": "alt+j",
"when": "editorTextFocus && !editorReadonly"
},
{
"command": "workbench.action.previousEditor",
"key": "ctrl+shift+tab"
},
{
"command": "workbench.action.nextEditor",
"key": "ctrl+tab"
},
{
"command": "workbench.action.terminal.focus",
"key": "ctrl+k"
},
{
"command": "workbench.action.focusActiveEditorGroup",
"key": "ctrl+k",
"when": "terminalFocus"
},
{
"command": "editor.action.moveLinesUpAction",
"key": "alt+k",
"when": "editorTextFocus && !editorReadonly"
},
{
"command": "-extension.vim_ctrl+j",
"key": "ctrl+j",
"when": "editorTextFocus && vim.active && vim.use<C-j> && !inDebugRepl"
},
{
"command": "extension.vim_ctrl+c",
"key": "alt+c",
"when": "editorTextFocus && vim.active && vim.overrideCtrlC && vim.use<C-c> && !inDebugRepl"
},
{
"command": "-extension.vim_ctrl+c",
"key": "ctrl+c",
"when": "editorTextFocus && vim.active && vim.overrideCtrlC && vim.use<C-c> && !inDebugRepl"
},
{
"command": "extension.vim_ctrl+v",
"key": "alt+v",
"when": "editorTextFocus && vim.active && vim.use<C-v> && !inDebugRepl"
},
{
"command": "-extension.vim_ctrl+v",
"key": "ctrl+v",
"when": "editorTextFocus && vim.active && vim.use<C-v> && !inDebugRepl"
},
{
"command": "-workbench.action.files.newUntitledFile",
"key": "ctrl+n"
},
{
"command": "selectNextSuggestion",
"key": "ctrl+n",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"command": "selectPrevSuggestion",
"key": "ctrl+p",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"command": "workbench.action.toggleSidebarVisibility",
"key": "ctrl+n",
"when": "!suggestWidgetVisible"
},
{
"command": "-workbench.action.toggleSidebarVisibility",
"key": "ctrl+b"
},
{
"command": "workbench.action.toggleAuxiliaryBar",
"key": "ctrl+alt+n"
},
{
"command": "-workbench.action.toggleAuxiliaryBar",
"key": "ctrl+alt+b"
},
{
"command": "editor.action.scrollLeftHover",
"key": "h",
"when": "editorHoverFocused"
},
{
"command": "editor.action.scrollDownHover",
"key": "j",
"when": "editorHoverFocused"
},
{
"command": "editor.action.scrollUpHover",
"key": "k",
"when": "editorHoverFocused"
},
{
"command": "editor.action.scrollRightHover",
"key": "l",
"when": "editorHoverFocused"
},
{
"command": "workbench.action.quickOpenSelectNext",
"key": "ctrl+n",
"when": "inQuickOpen"
},
{
"command": "workbench.action.quickOpenSelectPrevious",
"key": "ctrl+p",
"when": "inQuickOpen"
},
{
"command": "workbench.action.quickOpen",
"key": "ctrl+p",
"when": "!suggestWidgetVisible && !terminalFocus && !inQuickOpen"
},
{
"command": "welcome.showNewFileEntries",
"key": "alt+b"
},
{
"command": "-welcome.showNewFileEntries",
"key": "ctrl+alt+meta+n"
},
{
"command": "-extension.vim_ctrl+n",
"key": "ctrl+n",
"when": "editorTextFocus && vim.active && vim.use<C-n> && !inDebugRepl || vim.active && vim.use<C-n> && !inDebugRepl && vim.mode == 'CommandlineInProgress' || vim.active && vim.use<C-n> && !inDebugRepl && vim.mode == 'SearchInProgressMode'"
},
{
"command": "workbench.action.toggleActivityBarVisibility",
"key": "alt+n"
},
{
"command": "-workbench.action.quickOpen",
"key": "ctrl+p"
},
{
"key": "ctrl+e",
"command": "-editor.action.toggleScreenReaderAccessibilityMode",
"when": "accessibilityHelpIsShown"
},
{
"key": "ctrl+e",
"command": "-workbench.action.quickOpenNavigateNextInFilePicker",
"when": "inFilesPicker && inQuickOpen"
},
{
"key": "ctrl+e",
"command": "-extension.vim_ctrl+e",
"when": "editorTextFocus && vim.active && vim.use<C-e> && !inDebugRepl"
},
{
"key": "ctrl+e",
"command": "-workbench.action.quickOpen"
}
]
{
"workbench.colorTheme": "Atom One Dark",
"extensions.experimental.affinity": {
"vscodevim.vim": 1
},
"vim.leader": "<space>",
"vim.foldfix": true,
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["<leader>", "c", "a"],
"commands": ["editor.action.codeAction"]
},
{
"before": ["L"],
"commands": ["workbench.action.nextEditor"],
"silent": true
},
{
"before": ["H"],
"commands": ["workbench.action.previousEditor"],
"silent": true
},
{
"before": ["<leader>", "f", "f"],
"commands": ["workbench.action.quickOpen"]
},
{
"before": ["<leader>", "f", "m"],
"commands": ["editor.action.formatDocument"]
},
{
"before": ["]", "d"],
"commands": ["editor.action.marker.nextInFiles"]
},
{
"before": ["]", "c"],
"commands": ["editor.action.dirtydiff.next"]
},
{
"before": ["[", "c"],
"commands": ["editor.action.dirtydiff.prev"]
},
{
"before": ["[", "d"],
"commands": ["editor.action.marker.prevInFiles"]
},
{
"before": ["<leader>", "l", "t"],
"commands": ["workbench.actions.view.problems"]
},
{
"before": ["<leader>", "b"],
"commands": ["workbench.action.files.newUntitledFile"]
},
{
"before": ["<leader>", "x"],
"commands": ["workbench.action.closeActiveEditor"]
},
{
"before": ["g", "h"],
"commands": ["editor.action.showDefinitionPreviewHover"]
},
{
"before": ["g", "r"],
"commands": ["editor.action.referenceSearch.trigger"]
},
{
"before": ["<leader>", "Q"],
"commands": ["workbench.action.closeWindow"]
},
{
"before": ["K"],
"commands": ["editor.action.showHover"]
},
{
"before": ["<leader>", "g", "s"],
"commands": ["workbench.view.scm"]
},
{
"before": ["<leader>", "/"],
"commands": ["editor.action.commentLine"]
}
],
"vim.visualModeKeyBindingsNonRecursive": [
{
"before": ["<leader>", "/"],
"commands": ["editor.action.commentLine"]
}
],
"vim.insertModeKeyBindingsNonRecursive": [
{
"before": ["<C-h>"],
"after": ["<left>"]
},
{
"before": ["<C-e>"],
"commands": ["hideSuggestWidget"]
},
{
"before": ["<C-l>"],
"after": ["<right>"]
},
{
"before": ["<C-j>"],
"after": ["<down>"]
},
{
"before": ["<C-k>"],
"after": ["<up>"]
}
],
"vim.handleKeys": {
"<C-a>": false,
"<C-f>": false,
"<C-n>": false,
"<C-p>": false,
"<C-P>": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment