I am trying to close the active editor tab when pressing a key like "c" to close the active tab.
Tried the following element in my keybindings.json
{
"key": "c",
"command": "workbench.action.closeActiveEditor",
"when" : "normalVimMode"
}
But this also closes the tab when i am in edit mode. Any clue how this can be achieved?
Add the following snippet to settings.json
solves my problem:
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["c"],
"commands": [
"workbench.action.closeActiveEditor"
]
}
]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.