5 ms·
Vim emulation in VSCode worse than any other IDE I've used. All extensions have to run on the same thread in a background process and intercepted keystrokes ar
by jedwards1211 6y ago
Vim emulation in VSCode worse than any other IDE I've used.
All extensions have to run on the same thread in a background process and intercepted keystrokes are passed to that process over IPC. So if other extensions (like the TS language tools) are tying up the extension host process, the Vim extension can't respond to your keyboard input until other extensions yield.
Performance issues come and go but for awhile I was stuck waiting for several seconds any time I typed a < after an identifier.
A lot of us have tried to demand a separate process for extensions that intercept keystrokes to solve this issue permanently. But the maintainers don't really care.
- tazard 6y agoThis makes so much sense. Thanks for explaining that.
- lawn 6y agoI don't use it myself but it's possible to embed Neo Vim in VSCode. So you're able to use edit text using a real instance instead of relying on a crappy emulation.
- fstarship 6y agoI am not entirely sure if you are referring to https://marketplace.visualstudio.com/items?itemName=asvetliakov.vscode-neovim https://marketplace.visualstudio.com/items?itemName=asvetlia... I just switched after using vs vim and got much better performance. I had neovim installed anyway for the EX commands
- lawn 6y agoYes, that's it.
- wildrhythms 6y agoI use VS Code w/ vim mode for NodeJS/Angular/React development and haven't noticed performance issues; granted, I'm running on a beefy Windows PC since it's the only good option I've found for vim on Windows. On Mac/Linux I just use neovim with coc[1], which works beautifully. [1] https://github.com/neoclide/coc.nvim https://github.com/neoclide/coc.nvim
- chongli 6y agoAs a long time vim user, I’ve tried VSCode a few times and I cannot for the life of me figure out what all the hype is about. Can anyone who is proficient with it explain the philosophy behind it and what makes it so great? This is a sincere question, not a rhetorical one.
- oehtXRwMkIs 6y agoIt's very featureful and very easy to pick up. So I speculate that most of its popularity is with people that unfortunately have not yet been enlightened by vim/emacs.
- chongli 6y agoThe article said 1.4 million people have installed the Vim plugin for VSCode. That's a sizeable chunk. Presumably a bunch of those people really like the editor.
- EduardoBautista 6y agoI used Vim for several years before switching to Sublime Text 3.0 and now VS Code. VS Code support for TypeScript is just unmatched on any other editor.
- EQuimper 6y agoWebstorm typescript feel better for me
- pokernaming 6y agoI use vscode daily for everything, from note taking to programming. Here are my pros and cons. Pros: - Has plugins for anything.You're doing C++, just install C++ plugin and you're good to go. Want vim key bindings there's a plugin for that as well. I use a plugin that can scrape competitive coding websites and automatically create tests for a problem. - Git, snippets, etc all modern IDE features built-in. - It is also found on many websites as an editor. Cons: - Since it's electron. System requirements are on the higher end.
- satvikpendem 6y agohttps://marketplace.visualstudio.com/items?itemName=asvetliakov.vscode-neovim https://marketplace.visualstudio.com/items?itemName=asvetlia... This is using a real neovim instance rather than emulation, and performance is excellent for me.
- fstarship 6y agoI second that and would like to point out that apt-get only saves an old copy of neovim. I had to install the latest version using snap. This issue is described in the link but I thought it deserves highlighting
- jussij 6y ago> I was stuck waiting for several seconds any time I typed The worst behaviour of any editing environment is a lagging keyboard response. In this COVID-19 era I've found myself working remotely over VPN and on some occasions the response times become very slow. The most noticeable observation for me is how frustration writing code becomes whenever my editing environment slows over that lagging VPN. Tasks that are normally subconscious suddenly turn into mental challenges as you find yourself constantly checking if these subconscious actions actually complete.
- jrockway 6y agoI don't think there is any need to suffer just because you have a slow connection. You can use mosh if you're editing on a remote machine, or sshfs if your editor is on your workstation. I have heard that you can run the Language Server on the remote machine as well, for things like completion/indexing/etc. (I personally always just ssh to the remote machine and use Emacs though. Then I have the same environment at home and work and don't have to sync anything.)