Skip to content

Instantly share code, notes, and snippets.

@adibhanna
Created May 4, 2023 14:06
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adibhanna/70e40bab35277913979775820ef0bb34 to your computer and use it in GitHub Desktop.
Save adibhanna/70e40bab35277913979775820ef0bb34 to your computer and use it in GitHub Desktop.
VSCode Vim config
{
"vim.easymotion": false,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,
"vim.insertModeKeyBindings": [
{
"before": [
"j",
"j"
],
"after": [
"<Esc>"
]
}
],
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [
"<leader>",
"e"
],
"commands": [
"workbench.action.toggleSidebarVisibility"
]
},
{
"before": [
"<C-d>"
],
"after": [
"<C-d>",
"z",
"z"
]
},
{
"before": [
"<C-u>"
],
"after": [
"<C-u>",
"z",
"z"
]
},
{
"before": [
"<C-h>"
],
"after": [
"<C-w>",
"h"
]
},
{
"before": [
"<C-j>"
],
"after": [
"<C-w>",
"j"
]
},
{
"before": [
"<C-k>"
],
"after": [
"<C-w>",
"k"
]
},
{
"before": [
"<C-l>"
],
"after": [
"<C-w>",
"l"
]
},
{
"before": [
"<Leader>",
"b",
"n"
],
"commands": [
":tabnext"
]
},
{
"before": [
"<Leader>",
"b",
"p"
],
"commands": [
":tabprev"
]
},
{
"before": [
"<Leader>",
"c"
],
"commands": [
":tabclose"
]
},
{
"before": [
"<Leader>",
"h"
],
"commands": [
":noh"
]
},
{
"before": [
"leader",
"w"
],
"commands": [
"workbench.action.files.save",
]
},
{
"before": [
"<Leader>",
"f"
],
"commands": [
"workbench.action.quickOpen",
]
},
{
"before": [
"<Leader>",
"s",
"t"
],
"commands": [
"workbench.action.findInFiles",
]
},
{
"before": [
"<Leader>",
"l",
"r"
],
"commands": [
"editor.action.rename"
]
},
{
"before": [
"<Leader>",
"l",
"f"
],
"commands": [
"editor.action.formatDocument"
]
},
{
"before": [
"<Leader>",
"l",
"a"
],
"commands": [
"editor.action.quickFix"
]
},
{
"before": [
"<Leader>",
"l",
"A"
],
"commands": [
"code-runner.run"
]
},
{
"before": [
"<Leader>",
"l",
"R"
],
"commands": [
"editor.action.goToReferences"
]
},
{
"before": [
"K",
],
"commands": [
"editor.action.showDefinitionPreviewHover"
]
},
{
"before": [
"<Leader>",
"l",
"i"
],
"commands": [
"editor.action.goToImplementation"
]
},
{
"before": [
"<Leader>",
"l",
"D"
],
"commands": [
"editor.action.goToDeclaration"
]
},
],
"vim.visualModeKeyBindings": [
{
"before": [
">"
],
"after": [
">",
"g",
"v"
]
},
{
"before": [
"<"
],
"after": [
"<",
"g",
"v"
]
},
],
"vim.leader": "<space>",
"vim.handleKeys": {
"<C-a>": false,
"<C-f>": false
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment