Skip to content

Instantly share code, notes, and snippets.

@fernandotakai
Created April 24, 2020 19:00
Show Gist options
  • Save fernandotakai/63cd91b536197fb569e134520094fef2 to your computer and use it in GitHub Desktop.
Save fernandotakai/63cd91b536197fb569e134520094fef2 to your computer and use it in GitHub Desktop.
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+h",
"command": "workbench.action.focusLeftGroup",
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'"
},
{
"key": "ctrl+l",
"command": "workbench.action.focusRightGroup",
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'"
},
{
"key": "ctrl+k",
"command": "workbench.action.focusAboveGroup",
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'"
},
{
"key": "ctrl+j",
"command": "workbench.action.focusBelowGroup",
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'"
},
{
"key": "ctrl+shift+h",
"command": "workbench.action.moveEditorToNextGroup",
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'"
},
]
// Place your settings in this file to overwrite the default settings
{
"python.linting.flake8Enabled": true,
"python.linting.pylintEnabled": false,
"files.autoSave": "afterDelay",
"gitlens.advanced.messages": {
"suppressShowKeyBindingsNotice": true
},
"workbench.colorTheme": "Mustang",
"gitlens.historyExplorer.enabled": true,
"editor.minimap.enabled": false,
"editor.renderWhitespace": "none",
"breadcrumbs.enabled": false,
"editor.renderControlCharacters": false,
"window.titleBarStyle": "custom",
"window.zoomLevel": 0,
"editor.fontSize": 12,
"vim.leader": "\\",
"vim.foldfix": true,
"vim.commandLineModeKeyBindingsNonRecursive": [
],
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["<leader>", "1"],
"commands": ["workbench.action.openEditorAtIndex1"]
},
{
"before": ["<leader>", "2"],
"commands": ["workbench.action.openEditorAtIndex2"]
},
{
"before": ["<leader>", "3"],
"commands": ["workbench.action.openEditorAtIndex3"]
},
{
"before": ["<leader>", "4"],
"commands": ["workbench.action.openEditorAtIndex4"]
},
{
"before": ["<leader>", "5"],
"commands": ["workbench.action.openEditorAtIndex5"]
},
{
"before": ["<leader>", "6"],
"commands": ["workbench.action.openEditorAtIndex6"]
},
{
"before": ["<leader>", "7"],
"commands": ["workbench.action.openEditorAtIndex7"]
},
{
"before": ["<leader>", "8"],
"commands": ["workbench.action.openEditorAtIndex8"]
},
{
"before": ["<leader>", "9"],
"commands": ["workbench.action.openEditorAtIndex9"]
},
{
"before": ["<leader>", "b", "s"],
"commands": ["workbench.action.splitEditorUp"]
},
{
"before": ["<leader>", "b", "v"],
"commands": ["workbench.action.splitEditor"]
},
{
"before": ["<leader>", "t"],
"commands": ["workbench.action.toggleSidebarVisibility"]
},
{
"before": ["<leader>", "d"],
"commands": ["workbench.action.closeActiveEditor"]
},
{
"before": ["<leader>", "p"],
"commands": ["workbench.action.quickOpen"]
},
{
"before": ["<Space>"],
"commands": ["editor.toggleFold"]
},
{
"before": ["z", "A"],
"commands": ["editor.foldAll"]
},
{
"before": ["z", "Z"],
"commands": ["editor.unfoldAll"]
},
],
"vim.visualModeKeyBindingsNonRecursive": [
{
"before": [">"],
"commands": ["editor.action.indentLines"]
},
{
"before": ["<"],
"commands": ["editor.action.outdentLines"]
},
],
"vim.autoindent": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment