Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Vim extension not working when opening VSCode

Open pedroalves80 opened this issue 2 years ago • 1 comments

When opening vscode, the vim extensions isn't working. Few days ago It was working, then all of the sudden, I don't know if there was an update on vscode or vim, the extension stopped working. When opening VSCode devtools I saw the error that is in the screenshot bellow, and the error says "Activating extension 'vscodevim.vim' failed: Cannot create property 'recursive' on string 'j'.".

I tried the following:

  • Uninstalling and installing Vim extension;
  • Downgrading the version of the Vim extension;
  • Uninstalling, deleting the ~/.vscode/extensions/vscodevim-1.25.2 folder, Installing the Vim extension again;
  • Uninstalling VSCode and installing again;

Nothing of the above solved the problem.

Steps to reproduce the behavior:

  1. Open VSCode

Expected behavior It should load up vim extension automatically when opening vscode.

Screenshots image

  • Extension (VsCodeVim) version: 1.25.2
  • VSCode version: 1.78
  • OS: Windows 11 Pro

pedroalves80 avatar May 31 '23 22:05 pedroalves80

@pedroalves80 I had this same issue. From looking at the minified code, it is trying to read the following keys from settings.json

                                "insertModeKeyBindings",
                                "insertModeKeyBindingsNonRecursive",
                                "normalModeKeyBindings",
                                "normalModeKeyBindingsNonRecursive",
                                "operatorPendingModeKeyBindings",
                                "operatorPendingModeKeyBindingsNonRecursive",
                                "visualModeKeyBindings",
                                "visualModeKeyBindingsNonRecursive",
                                "commandLineModeKeyBindings",
                                "commandLineModeKeyBindingsNonRecursive",

Once I removed these from my settings.json it started running again. Hopefully, this fixes your issue like it did mine!

gtapplec avatar May 07 '24 11:05 gtapplec