Vim setup with Visual Studio

Pratik Cholke 11 Reputation points
2022-07-30T07:39:08.143+00:00

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.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,896 questions
{count} vote