vscode vim 记录
im-select 自动切换输入法
// 输入法自动切换
"vim.autoSwitchInputMethod.enable": true,
"vim.autoSwitchInputMethod.defaultIM": "1033",
"vim.autoSwitchInputMethod.obtainIMCmd": "D:\\jdk1.8.0_131\\im-select.exe",
"vim.autoSwitchInputMethod.switchIMCmd": "D:\\jdk1.8.0_131\\im-select.exe {im}",
基本使用
s 搜索 :跳转 f/F当前行搜索 /等同于ctrl + f
dd 删除当前行 daw删除当前单词
yy 复制当前行 yaw复制当前代词
hjkl 上下左右 Esc 进入normal模式
my setting
"vim.foldfix": true,
"vim.sneak": true,
// 输入法自动切换
"vim.autoSwitchInputMethod.enable": true,
"vim.autoSwitchInputMethod.defaultIM": "1033",
"vim.autoSwitchInputMethod.obtainIMCmd": "D:\\jdk1.8.0_131\\im-select.exe",
"vim.autoSwitchInputMethod.switchIMCmd": "D:\\jdk1.8.0_131\\im-select.exe {im}",
"vim.leader": "<space>",
"vim.insertModeKeyBindings": [
{
"before": ["j", "j"],
"after": ["<Esc>"]
},
{
"before": ["j", "k"],
"after": ["<Esc>"]
},
{
"before": ["k", "k"],
"after": ["<Esc>"]
},
{
"before": ["<C-h>"],
"after": ["<Left>"]
},
{
"before": ["<C-j>"],
"after": ["<Down>"]
},
{
"before": ["<C-k>"],
"after": ["<Up>"]
},
{
"before": ["<C-l>"],
"after": ["<Right>"]
},
{
"before": ["<C-e>"],
"after": ["<End>"]
},
{
"before": ["<C-d>"],
"after": ["<Delete>"]
}
],
"vim.visualModeKeyBindings": [
{
"before": [">"],
"commands": ["editor.action.indentLines"]
},
{
"before": ["<"],
"commands": ["editor.action.outdentLines"]
}
],
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["L"],
"after": ["$"]
},
{
"before": ["H"],
"after": ["^"]
},
{
"before": ["J"],
"after": ["9", "j"]
},
{
"before": ["K"],
"after": ["9", "k"]
},
{
"before": ["Y"],
"after": ["y", "$"]
},
{
"before": [
// 想左切换vscodeTab
"E"
],
"after": ["g", "T"]
},
{
"before": [
// 想右切换vscodeTab
"R"
],
"after": ["g", "t"]
},
{
"before": ["U"],
"after": ["<C-r>"]
},
{
"before": ["z", "z"], // 存盘退出
"after": [":", "w", "q", "<CR>"]
},
{
"before": ["<leader>", "l"],
"after": ["$"]
},
{
"before": ["<leader>", "h"],
"after": ["^"]
},
{
"before": ["<leader>", "<leader>"], // 折叠
"commands": ["editor.toggleFold"]
},
{
"before": ["<leader>", "w"], // 保存文件
"commands": ["workbench.action.files.save"]
},
{
"before": ["<leader>", "v"],
"commands": ["workbench.action.splitEditor"] // 拆分代码块
},
{
"before": ["<leader>", "e"], // 资源管理器
"commands": ["workbench.view.explorer"]
}
],
"vim.handleKeys": {
"<C-a>": false,
"<C-f>": false,
"<C-c>": false,
"<C-v>": false,
"<C-x>": false,
"<C-n>": false,
"<C-w>": false,
"<C-d>": false,
"<C-y>": false
},
"editor.smoothScrolling": true,
"editor.cursorSmoothCaretAnimation": true,