Skip to content

Instantly share code, notes, and snippets.

@aaronmcadam
Created May 3, 2017 16:55
Show Gist options
  • Save aaronmcadam/8c5e02dffb874dba81960270e209a224 to your computer and use it in GitHub Desktop.
Save aaronmcadam/8c5e02dffb874dba81960270e209a224 to your computer and use it in GitHub Desktop.
Example of mapping vim commands in vscode
"vim.leader": "<space>",
"vim.otherModesKeyBindingsNonRecursive": [
{
"before": [
"<leader>",
"g",
"w"
],
"commands": [
{
"command": "workbench.action.files.save"
},
{
"command": "git.stageAll"
}
]
},
{
"before": [
"<leader>",
"g",
"c"
],
"commands": [
{
"command": "git.commit"
}
]
},
{
"before": [
"<leader>",
"g",
"p"
],
"commands": [
{
"command": "git.push"
}
]
},
{
"before": [
"<leader>",
"t"
],
"commands": [
{
"command": "runCurrentTest.run"
}
]
},
{
"before": [
"<leader>",
"u"
],
"commands": [
{
"command": "runCurrentTest.runAndUpdateSnapshots"
}
]
}
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment