Skip to content

Instantly share code, notes, and snippets.

@hasssan
Created June 3, 2024 11:04
Show Gist options
  • Save hasssan/3bb6fde3269ac08bd876fbdefe7169ab to your computer and use it in GitHub Desktop.
Save hasssan/3bb6fde3269ac08bd876fbdefe7169ab to your computer and use it in GitHub Desktop.
Keybinding for vscode vim
{
"vim.normalModeKeyBindings": [],
"vim.visualModeKeyBindings": [
{
"before": [
">"
],
"commands": [
"editor.action.indentLines"
]
},
{
"before": [
"<"
],
"commands": [
"editor.action.outdentLines"
]
},
{
"before": [
"K"
],
"commands": [
"editor.action.moveLinesUpAction"
]
},
{
"before": [
"J"
],
"commands": [
"editor.action.moveLinesDownAction"
]
},
],
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [
"leader",
"<space>"
],
"commands": [
"workbench.action.files.save"
]
},
// https: //github.com/VSCodeVim/Vim/issues/2007
{
"before": [
"u"
],
"after": [],
"commands": [
{
"command": "undo"
}
]
},
{
"before": [
"<C-r>"
],
"after": [],
"commands": [
{
"command": "redo"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment