I often work in a specific file and would like to have that file opened when pressing a shortcut. I tried several combinations but seem to hit a wall..
// file settings.json
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["leader","t"],
"commands": [
"vscode.open"
],
"args": "notes/todo.md"
}
]
Any hint on how i can get this working? When executing the above code i get a illegal argument 'resource'
Using normal vim keywords solves the problem.
{
"before": [
"leader", "t"
],
"commands": [
":edit file:///notes/todo.md"
]
}
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.