跳至主要内容

VSCode Vim settings

Preparation

NameRoleNote
vscodeeditorrequired
vscodevim.vimvscode pluginrequired
extr0py.vscode-relative-line-numbersvscode pluginoptional
sburg.vscode-javascirpt-boostervscode pluginoptional [suggested:frontend]
p42ai.refactorvscode pluginoptional [suggested:frontend]
wix.gleanvscode pluginoptional [suggested:frontend]
vimiumbrowser pluginoptional [suggested:all]
hackmdonline notesoptional [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
}
}
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"]
}
]
}