diff --git a/dotfiles/.config/Code - OSS/User/keybindings.json b/dotfiles/.config/Code - OSS/User/keybindings.json index c08bd48..ad21138 100644 --- a/dotfiles/.config/Code - OSS/User/keybindings.json +++ b/dotfiles/.config/Code - OSS/User/keybindings.json @@ -133,5 +133,24 @@ "key": "ctrl+b", "command": "-extension.vim_ctrl+b", "when": "editorTextFocus && vim.active && vim.use && !inDebugRepl && vim.mode != 'Insert'" + }, + { + "key": "ctrl+w", + "command": "-workbench.action.closeActiveEditor" + }, + { + "key": "ctrl+w", + "command": "-workbench.action.closeGroup", + "when": "activeEditorGroupEmpty && multipleEditorGroups" + }, + { + "key": "ctrl+w", + "command": "-extension.vim_ctrl+w", + "when": "editorTextFocus && vim.active && vim.use && !inDebugRepl" + }, + { + "key": "ctrl+w", + "command": "workbench.action.closeActiveEditor", + "when": "editorTextFocus" } ] \ No newline at end of file diff --git a/dotfiles/.config/Code - OSS/User/settings.json b/dotfiles/.config/Code - OSS/User/settings.json index d4cfe66..b7d10fb 100644 --- a/dotfiles/.config/Code - OSS/User/settings.json +++ b/dotfiles/.config/Code - OSS/User/settings.json @@ -47,5 +47,42 @@ "workbench.preferredHighContrastColorTheme": "Monokai", "workbench.preferredHighContrastLightColorTheme": "Monokai", "workbench.preferredLightColorTheme": "Monokai", - "mesonbuild.downloadLanguageServer": false + "mesonbuild.downloadLanguageServer": false, + // "vim.easymotion": true, + // "vim.incsearch": true, + "vim.useSystemClipboard": true, + // "vim.useCtrlKeys": true, + "vim.hlsearch": true, + // "vim.insertModeKeyBindings": [ + // { + // "before": ["j", "j"], + // "after": [""] + // } + // ], + "vim.normalModeKeyBindingsNonRecursive": [ + { + "before": ["", "w"], + "after": [""], + // "after": ["d", "d"] + }, + // { + // "before": [""], + // "commands": [":nohl"] + // }, + // { + // "before": ["K"], + // "commands": ["lineBreakInsert"], + // "silent": true + // } + ], + "vim.leader": "\\", + // "vim.handleKeys": { + // "": false, + // "": false + // }, + + "// To improve performance", + "extensions.experimental.affinity": { + "vscodevim.vim": 1 + }, } \ No newline at end of file