Skip to content

Instantly share code, notes, and snippets.

@prnvbn
Last active September 14, 2024 15:40
Show Gist options
  • Save prnvbn/4cedb4e0415267354ef5b2f460ee0431 to your computer and use it in GitHub Desktop.
Save prnvbn/4cedb4e0415267354ef5b2f460ee0431 to your computer and use it in GitHub Desktop.
My VS Code Vim keybinds
"vim.leader": " ",
"vim.foldfix": true,
"vim.smartRelativeLine": true,
"vim.useSystemClipboard": true,
"vim.normalModeKeyBindings": [
{
"before": [
"<leader>",
"w"
],
"commands": [
"workbench.action.files.save"
]
},
{
"before": [
"<leader>",
"e"
],
"commands": [
"workbench.view.explorer"
]
},
{
"before": [
"g",
"f"
],
"commands": [
"editor.action.formatDocument"
]
},
{
"before": [
"g",
"p",
"d"
],
"commands": [
"editor.action.peekDefinition"
]
},
{
"before": [
"g",
"h"
],
"commands": [
"editor.action.showDefinitionPreviewHover"
]
},
{
"before": [
"g",
"i"
],
"commands": [
"editor.action.goToImplementation"
]
},
{
"before": [
"g",
"p",
"i"
],
"commands": [
"editor.action.peekImplementation"
]
},
{
"before": [
"g",
"q"
],
"commands": [
"editor.action.quickFix"
]
},
{
"before": [
"g",
"r"
],
"commands": [
"editor.action.referenceSearch.trigger"
]
},
{
"before": [
"g",
"t"
],
"commands": [
"editor.action.goToTypeDefinition"
]
},
{
"before": [
"g",
"p",
"t"
],
"commands": [
"editor.action.peekTypeDefinition"
]
},
{
"before": [
"<leader>",
"t"
],
"commands": [
"workbench.action.terminal.focus"
]
},
{
"before": [
"<leader>",
"p"
],
"commands": [
"workbench.action.quickOpen"
]
},
{
"before": [
"<leader>",
"r"
],
"commands": [
"workbench.action.openRecent"
]
},
{
"before": [
"<leader>",
"d"
],
"commands": [
"workbench.view.debug"
]
},
{
"before": [
"v",
"v"
],
"after": [
"shift+v"
]
}
],
"vim.insertModeKeyBindings": [
{
"before": [
"j",
"k"
],
"after": [
"<Esc>"
]
}
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment