Created
July 4, 2023 14:08
-
-
Save stevedylandev/b6bb1eccd83ea438031158c5961fd3f8 to your computer and use it in GitHub Desktop.
VSCodeVim Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.accessibilitySupport": "off", | |
"terminal.integrated.fontFamily": "BerkeleyMono Nerd Font", | |
"workbench.colorTheme": "Gruvbox Material Dark", | |
"editor.fontFamily": "BerkeleyMono Nerd Font, Menlo, Monaco, 'Courier New', monospace", | |
"gruvboxMaterial.darkContrast": "hard", | |
"editor.inlineSuggest.enabled": true, | |
"editor.fontSize": 13, | |
"terminal.external.osxExec": "Alacritty.app", | |
"terminal.integrated.fontSize": 13, | |
"workbench.productIconTheme": "icons-carbon", | |
"workbench.iconTheme": "ayu", | |
"[mdx]": { | |
"editor.wordWrap": "bounded", | |
"editor.wordWrapColumn": 75 | |
}, | |
"editor.minimap.enabled": false, | |
"workbench.activityBar.visible": false, | |
"workbench.editorAssociations": { | |
"*.css": "default" | |
}, | |
"vim.smartRelativeLine": true, | |
"vim.enableNeovim": true, | |
"vim.hlsearch": true, | |
"vim.leader": " ", | |
"vim.neovimUseConfigFile": true, | |
"vim.neovimConfigPath": "~/.config/nvim/init.lua", | |
"vim.neovimPath": "/opt/homebrew/bin/nvim", | |
"vim.useSystemClipboard": true, | |
"vim.normalModeKeyBindings": [ | |
// switch buffers with ctrl and left and right | |
{ "before": ["<S-h>"], "commands": [":bprevious"]}, | |
{ "before": ["<S-l>"], "commands": [":bnext"]}, | |
// save file | |
{ "before": ["leader", "w"], "commands": ["workbench.action.files.save"]}, | |
// remove search highlight | |
{ "before": ["leader", "h"], "commands": [":nohl"]}, | |
// find files | |
{ "before": ["leader", "f"], "commands": ["workbench.action.quickOpen"]}, | |
// toggle file tree | |
{ "before": ["leader", "e"], "commands": ["workbench.action.toggleSidebarVisibility"]}, | |
// open splits | |
{ "before": ["leader", "v"], "commands": [":vsplit"]}, | |
{ "before": ["leader", "s"], "commands": [":split"]}, | |
// format buffer | |
{ "before": ["leader", "p"], "commands": ["editor.action.formatDocument"]}, | |
// better pane navigation | |
{ "before": ["<C-h>"], "commands": ["workbench.action.focusLeftGroup"]}, | |
{ "before": ["<C-j>"], "commands": ["workbench.action.focusBelowGroup"]}, | |
{ "before": ["<C-k>"], "commands": ["workbench.action.focusAboveGroup"]}, | |
{ "before": ["<C-l>"], "commands": ["workbench.action.focusRightGroup"]}, | |
], | |
"vim.visualModeKeyBindings": [ | |
// Stay in visual mode while indenting | |
{ "before": ["<"], "commands": ["editor.action.outdentLines"]}, | |
{ "before": [">"], "commands": ["editor.action.indentLines"]}, | |
// Move selected lines while staying in visual mode | |
{ "before": ["J"], "commands": ["editor.action.moveLinesDownAction"]}, | |
{ "before": ["K"], "commands": ["editor.action.moveLinesUpAction"]}, | |
// toggle comment selection | |
{ "before": ["leader", "c"], "commands": ["editor.action.commentLine"]}, | |
], | |
"[jsonc]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[javascript]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment