VSCode+neovim工作环境快速构建
环境
- 系统:Windows
- 代码编辑器:VSCode
- 插件:vscode-neovim、clangd
目的
为了减少右手趴鼠标上的时间,所以根据以下目标给出一份最简洁的配置方案:
- 窗口跳转:
<C-w>+h j k l - 标签页跳转:
H L - 终端打开\关闭:
<C-`> - 相对行号
- 引用跳转(Go to Define):
gd - 模式切换(Insert to Normal):
jj、vv - 侧边栏打开\关闭:
space + e
<>里的动作是一个连续的动作
为什么不使用CapsLock进行模式切换?这样小拇指多累啊XD
clangd是必须的的,在C/C++环境下,这样可以在不同文件的define之间跳转(gd操作)。
配置
settings.json
{
/* vscode-neovim setting */
"editor.lineNumbers": "relative",
"vscode-neovim.compositeKeys": {
"vv": {
"command": "vscode-neovim.escape"
},
"jj": {
"command": "vscode-neovim.escape"
}
},
/* other externtion */
"workbench.colorTheme": "Fleet Dark",
"editor.fontSize": 18,
"files.encoding": "gbk",
"workbench.iconTheme": "material-icon-theme",
"C_Cpp.intelliSenseEngine": "disabled",
"Codegeex.Privacy": true,
"Codegeex.License": "",
"extensions.experimental.affinity": {
"asvetliakov.vscode-neovim": 1
},
"clangd.path": "c:\\Users\\me\\AppData\\Roaming\\Code\\User\\globalStorage\\llvm-vs-code-extensions.vscode-clangd\\install\\20.1.8\\clangd_20.1.8\\bin\\clangd.exe",
"editor.fontFamily": "JetBrains Mono",
"editor.fontLigatures": true
}
keybindings.json
// Place your key bindings in this file to override the defaults
[
{
"key": "space e",
"command": "workbench.action.toggleSidebarVisibility",
"when": "neovim.mode == 'normal'"
}
]

浙公网安备 33010602011771号