vimvisual-studio-codemultiple-cursor

VSCode Vim disabling multiple cursors


I have looked everywhere and I am still unable to switch off this 'feature'!

I've been using vi and, later, vim, since the 80's and I have never had need of multiple cursors, nor can I see a use for them.

:<range>s/search/replace/ does everything I need so this new feature is infuriating beyond words, especially as I've no idea how to switch it off when it seemingly-randomly appears.

Would someone be wonderful enough as to tell me how to banish, remove, consign-to-history the multiple cursors feature in VSCode Vim 1.12.4, please?


Solution

  • I believe this issue is specific to the plugin. I experienced it with the HTML plugin recently, and I'm assuming you have the same problem with HTML files, but the same principle should apply to other plugins as well. You just have to find the setting.

    In the VS Code settings, there is an option that reads:

    HTML: Mirror Cursor On Matching Tag
    

    You can uncheck the box there to disable the feature. Or you can go to the settings.json in your local repo (inside the .vscode directory), or the equivalent global file, and add/modify the following field like so:

    "html.mirrorCursorOnMatchingTag": false
    

    That should take care of it for you.