问题
According to their readme: https://github.com/asvetliakov/vscode-neovim, I have put the following in ~/.config/Code/User/keybindings.json
:
[
{
"command": "vscode-neovim.compositeEscape2",
"key": "k",
"when": "neovim.mode == insert",
"args": "k"
}
]
However, after saving and restarting the vs, the escape is still not triggered when jk
is pressed. Why is it?
回答1:
First make sure you have neovim installed then add the following to your keybindings.json
:
{
"command": "vscode-neovim.compositeEscape1",
"key": "j",
"when": "neovim.mode == insert",
"args": "j"
},
{
"command": "vscode-neovim.compositeEscape2",
"key": "k",
"when": "neovim.mode == insert",
"args": "k"
}
来源:https://stackoverflow.com/questions/62727830/how-to-activate-keybindings-from-neovim-in-vscode