VSCode Vim settings
Preparation
Name | Role | Note |
---|---|---|
vscode | editor | required |
vscodevim.vim | vscode plugin | required |
extr0py.vscode-relative-line-numbers | vscode plugin | optional |
sburg.vscode-javascirpt-booster | vscode plugin | optional [suggested:frontend] |
p42ai.refactor | vscode plugin | optional [suggested:frontend] |
wix.glean | vscode plugin | optional [suggested:frontend] |
vimium | browser plugin | optional [suggested:all] |
hackmd | online notes | optional [suggested:all] |
Suggested VSCode Vim Configuration
settings.json
{
"vim.useSystemClipboard": true,
"vim.surround": true,
"vim.foldfix": true,
"vim.easymotion": true,
"vim.leader": ";",
"vim.easymotionMarkerBackgroundColor": "#FBD87F",
"vim.easymotionMarkerFontWeight": "bold",
"vim.easymotionMarkerForegroundColorOneChar": "#DE0079",
"vim.easymotionKeys": "hklyuiopnmqwertzxcvbasdgjf",
"vim.searchHighlightColor": "#DE0079",
"vim.searchHighlightTextColor": "#fefefe",
"vim.hlsearch": true,
"extensions.experimental.affinity": {
"vscodevim.vim": 1
}
}
Navigation Configuration
settings.json
{
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["z", "n"],
"commands": ["editor.action.marker.next"]
},
{
"before": ["z", "p"],
"commands": ["editor.action.marker.prev"]
}
]
}
Refactor Configuration ( p42 refactor tool installed )
settings.json
{
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["R", "R"],
"commands": ["p42.touchBar.refactor"]
}
],
"vim.visualModeKeyBindingsNonRecursive": [
{
"before": ["R", "R"],
"commands": ["p42.touchBar.refactor"]
}
]
}