Skip to content

Instantly share code, notes, and snippets.

@Tal500
Last active September 18, 2023 12:45
Show Gist options
  • Select an option

  • Save Tal500/d6aa57c54409c95009f6f005376ccd6f to your computer and use it in GitHub Desktop.

Select an option

Save Tal500/d6aa57c54409c95009f6f005376ccd6f to your computer and use it in GitHub Desktop.
VSCode settings for Vim extension
{
// Vim related settings
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.statusBarColorControl": true,
"vim.highlightedyank.enable": true,
"vim.startInInsertMode": false,
"vim.leader": "<space>",
"vim.handleKeys": {
"<C-a>": false,
"<C-j>": false,
"<C-k>": false,
"<C-p>": false,
"<C-s>": false,
"<C-t>": false,
"<C-w>": false,
"<C-z>": false,
"<C-PageUp>": false,
"<C-PageDown>": false,
},
"vim.insertModeKeyBindingsNonRecursive": [
{
"before": ["j", "j"],
"after": ["<Esc>"]
},
{
"before": ["<C-x>"],
"commands": ["editor.action.clipboardCutAction"]
},
{
"before": ["<C-c>"],
"commands": ["editor.action.clipboardCopyAction"],
},
{
"before": ["<C-v>"],
"commands": ["editor.action.clipboardPasteAction"]
},
{
"before": ["<C-d>"],
"commands": ["editor.action.addSelectionToNextFindMatch"]
},
{
"before": ["<C-f>"],
"commands": ["actions.find"]
},
{
"before": ["<C-h>"],
"commands": ["editor.action.startFindReplaceAction"]
},
{
"before": ["<C-b>"],
"commands": ["workbench.action.toggleSidebarVisibility"]
},
// I know that C-PageUp/Down are disabled in "vim.handleKeys", but for some reason this is the only fix for insert mode.
{
"before": ["<C-PageUp>"],
"commands": ["workbench.action.previousEditor"]
},
{
"before": ["<C-PageDown>"],
"commands": ["workbench.action.nextEditor"]
},
],
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["<leader>", "e"],
"commands": ["workbench.action.toggleSidebarVisibility"]
},
{
"before": ["[", "b"],
"commands": ["workbench.action.previousEditor"]
},
{
"before": ["]", "b"],
"commands": ["workbench.action.nextEditor"]
},
// Don't want to enable it for not disabling regexp search
//{
// "before": ["/"],
// "commands": ["actions.find"]
//},
],
"vim.showMarksInGutter": true,
"editor.smoothScrolling": true,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment