Electron has nothing to do with the exploit here. A Vim plugin would have just as much ability to run malware.
And vim has package managers that make installing and updating packages as easy as vs code.
VS Code like npm are only the targets because they are the most popular, not because they are uniquely vulnerable.
grep
> go to definition
/definition
Not even using vim, I'm more of a micro person.