Vim setup with Visual Studio
Pratik Cholke
11
Reputation points
It's been a while since I am using VIM with VS Code. But my current project requires the use of Visual Studio. While setting vim for vs code I have modified my settings.json and keybindings.json files. How do apply that kinds of modifications in Visual Studio 2022?
Following are two files from vscode.
settings.json
{
"vim.easymotion": true,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": false,
"vim.hlsearch": true,
"vim.insertModeKeyBindings": [
{
"before": ["j", "j"],
"after": ["<Esc>"]
}
],
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["<leader>", "d"],
"after": ["d", "d"]
},
{
"before": ["<C-n>"],
"commands": [":nohl"]
}
],
"vim.leader": "<space>",
"vim.handleKeys": {
"<C-a>": false,
"<C-f>": false
},
}
keybindings.json
[
{
"key": "tab",
"command": "tab",
"when": "editorTextFocus && !editorTabMovesFocus"
},
{
"key": "shift-tab",
"command": "outdent",
"when": "editorTextFocus && !editorTabMovesFocus"
}
]
Note: I have installed VsVim 2022 extension on Visual Studio 2022.
Sign in to answer