I found the way to use vsc vim extension in Arduino IDE 2.x

Korean) https://cafe.naver.com/arduinostory/151517

If you want to use vim extension for Visual Studio Code in Arduino IDE 2.X, you should do 1~5 steps at first time, and 2~5 steps at every time.(but except 1 step, all step is so easy)

1. Copy extension files

copy vim extension for VSC to Arduino IDE plugins path
(./arduino-ide_2.2.0_Linux_64bit/resources/app/plugins)

and copy Indent Rainbow extension same way.
I use this extension just for reloading settings.json files

2. execute Arduino IDE



3. Open settings (UI)

press Ctrl + Shift + P and input 'open setting', enter to Preference: open settings (UI).



4. Edit in settings.json

go to Extensions - Indent Rainbow, click any Edit in settings.json.



5. Click RELOAD NOW

Click RELOAD NOW.

6. Play!






I think arduino ide don't load VSC extension's setting file when it is executing.
so if we load setting file manually, it works.

Thank you very much!

That's exactly what I need. Unfortunately, I can't follow your steps with success. I use Arduino IDE 2.2.1. My configuration directories don't look like yours. Here's what I have:

VScodium v1.84.2:

~/.vscode-oss/extensions> ls
...
extensions.json
...
oderwat.indent-rainbow-8.3.1-universal
...
vscodevim.vim-1.27.1-universal

To Arduino IDE 2.2.1, copy (Note: the path is different, as suggested here):

~/.arduinoIDE/extensions> ls
oderwat.indent-rainbow-8.3.1-universal  vscodevim.vim-1.27.1-universal

After starting Arduino IDE, the Rainbow starts right away; the Vim plugin starts too, but with an error:

Activating extension 'Vim' failed: Cannot add property 0, object is not extensible

What do I have to correct? Note that I skipped step 4 (not needed any more?)

Hi @tyrn.

I am able to reproduce this error even when I install the "VSCodeVim" extension in Theia Blueprint, the demonstration application for the Eclipse Theia IDE framework. This leads me to conclude that it is an incompatibility with the Theia framework itself rather than the Arduino IDE implementation specifically.

I found this is already being tracked by the Theia developers here:

If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject:

image

And of course if anyone is able to find the source of the error in the VSCodeVim or Theia codebases, I'm sure the developers of those free open source software projects would welcome a pull request.

Good news! Meanwhile, I got more luck with VSCode Neovim plugin. It just works...

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.