setting.json中的配置
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| "workbench.list.automaticKeyboardNavigation": false,
"vim.leader": "<space>", "vim.easymotion": true, "vim.useSystemClipboard": true, "vim.useCtrlKeys": true, "vim.hlsearch": true, "vim.normalModeKeyBindingsNonRecursive": [], "vim.insertModeKeyBindings": [], "vim.commandLineModeKeyBindingsNonRecursive": [], "vim.operatorPendingModeKeyBindings": [], "vim.handleKeys": { "<C-a>": false, "<C-f>": false }
|
可以定义在按下一些按键后,调用vscode下的命令API,比如在NORMAL模式下按下gc后,调用vscode的全局命令:
1 2 3 4 5 6 7 8 9 10 11 12
| "vim.normalModeKeyBindingsNonRecursive": [ { "before": [ "<leader>", "g", "c" ], "commands": [ "workbench.action.showCommands" ] } ],
|
参考
vscode + vim 全键盘操作高效搭配方案