vscode中的vim快捷键配置
{
"files.autoSave": "afterDelay",
"editor.lineNumbers": "relative",
"vim.easymotion": true,
"vim.leader": "<space>",
"vim.useSystemClipboard": true,
"vim.insertModeKeyBindingsNonRecursive": [
{"before":["f","d"], "after":["<esc>"]},
{"before":["<C-k>"], "after":["<up>"]},
{"before":["<C-j>"], "after":["<down>"]},
{"before":["<C-h>"], "after":["<left>"]},
{"before":["<C-l>"], "after":["<right>"]},
],
"vim.normalModeKeyBindingsNonRecursive": [
{"before":["<leader>","f","s"], "commands":[":w"]},
{"before":["<leader>","b","d"], "commands":[":q"]},
{"before":["<leader>","b","n"], "commands":[":bn"]},
{"before":["<leader>","b","p"], "commands":[":bp"]},
{"before":["<leader>","'"], "commands":["workbench.action.terminal.toggleTerminal"]},
{"before":["<leader>","f","t"], "commands":["workbench.action.toggleSidebarVisibility"]},
],
"vim.handleKeys": {
"<C-b>": false,
"<C-d>": false,
"<C-z>": false,
"<C-f>": false,
"<C-p>": false,
},
}
vim easymotion
快速定位到指定串
<leader><leader> f
<leader><leader> F
快速定位到行首
<leader><leader> j
<leader><leader> k
快速定位单词首
<leader><leader> w
<leader><leader> b
快速定位单词尾
<leader><leader> e
<leader><leader> ge