Skip to content

Instantly share code, notes, and snippets.

@pom421
Last active November 23, 2022 21:03
Show Gist options
  • Save pom421/b8b531b7988373ebf6646b5cbfd47073 to your computer and use it in GitHub Desktop.
Save pom421/b8b531b7988373ebf6646b5cbfd47073 to your computer and use it in GitHub Desktop.
Make that saving file in VS code triggers the return in Vim normal mode

Nota bene

You have to install the multi-command extension in VS Code, because VS Code doesn't handle internally to trigger multiple commands.

{
"key": "cmd+s",
"command": "extension.multiCommand.execute",
"args": {
"sequence": [
"workbench.action.files.save",
"extension.vim_escape"
]
},
"when": "editorTextFocus && vim.active && vim.mode != 'Normal'"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment