vscode vim key mapping,vscodevim
分享于 点击 889 次 点评:138
vscode vim key mapping,vscodevim
vim中由于冒号:
命令十分常用,所以一种做法是将冒号:
和;
分号进行交换,这样在输入命令时可以不用按shift键了,减少了负担。
vscode的vim插件默认还是使用:
作为命令行的输入,在User Settings中,使用如下的配置重新映射’;’和’:’,
"vim.otherModesKeyBindingsNonRecursive": [
{
"before": [":"],
"after": [";"]
},
{
"before": [";"],
"after": [":"]
}
]
这样配置后,’;’的功能依然可以使用。
下面是旧的方法,由于不能使用’;’命令的原来的功能,所以不建议使用。
// Place your key bindings in this file to overwrite the defaults
[
{
"key": ";",
"command": "extension.showCmdLine",
"when": "editorTextFocus && vim.active && !inDebugRepl && vim.mode != 'Insert'"
}
]
相关文章
- 暂无相关文章
用户点评