-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Significant Performance Degradation on Large File #8115
Comments
@pingshunhuangalex Interesting problem. Have you tried this instead? https://marketplace.visualstudio.com/items?itemName=asvetliakov.vscode-neovim According to this article, it's much, much faster: https://galenwong.github.io/blog/2021-03-22-vscode-neovim-vs-vscodevim/ And it uses native NeoVim, so there's no need to emulate Vim in JavaScript. It's all running natively with full support for all Vim commands. Edit: The reason for VSCodeVim's slowness is because of how VSCode implements the JavaScript extension host. It's explained by a team member of VSCodeVim, who even recommended NeoVim as a solution: Someone even replied in that thread and said:
Edit again: Here's someone who explains why the NeoVim extension is so much faster: In short, it seems to be because VSCodeVim has to register a The NeoVim plugin doesn't do that. It unregisters the |
Thanks for the suggestion @Bananaman I've hesitated before between the 2 options and picked VSCodeVim back then, probably cuz it's maintained by Microsoft devs. I've accumulated quite a bit of configs and became reluctant to migrate. Maybe it's time to change now. Thanks. |
@pingshunhuangalex Yeah I know the problem about having a lot of configs, but I think it's better to have a usable editor than a super laggy one. Slow text is so bad for productivity and peace of mind. :/ I heard so many good reviews for NeoVim plugin and will switch to it. VSCodeVim isn't maintained by Microsoft by the way? At least if I look at the contributors, I can't find any Microsoft devs: https://github.com/VSCodeVim/Vim/graphs/contributors It's mainly maintained by https://github.com/J-Fields who works at another company. |
@pingshunhuangalex Oh, I was thinking about this again and just realized that there may have been a misunderstanding. I wasn't saying "switch to NeoVim". :D
The last one is what I said we should switch to: https://marketplace.visualstudio.com/items?itemName=asvetliakov.vscode-neovim |
Thank you for the suggestion @Bananaman I didn't know such an extension existed. I'll give it a try. I came across this issue as the first thing I've noticed immediately after installing this plugin is the bizarre inconsistency even when navigating in normal mode. Sometimes hitting the h key moves left, and sometimes it just decides not to do anything! Same thing when holding it: it either moves normally as expected, or just takes a moment then moves. It's a shame. I really hope Microsoft works on a native Vim plugin, even if with a basic functionality. I think the Vim plugin in JetBrains IDEs is developed by JetBrains. |
I have the same issue but in a 6000 line Markdown file. Typing gets really slow with the VIM extension enabled (I had found this through the VSCode Bisection of plugins). |
I noticed that in the settings of VSCodeVim, it seems to support using Neovim as a backend and can also use some .vimrc configurations.I wonder if this can eventually solve the problem (it doesn't seem to work at the moment). Finally, I think you are right. (Although I am somewhat reluctant to give up my current plugin configuration, the ecosystem on Neovim seems more active, and I should be able to configure it quickly. Thank you for your recommendation.) |
Describe the bug
I have a couple of 120k lines YAML files which I edit on a daily basis. With recent updates (in the past month or even a couple of weeks ago), VS Code has become so laggy that the letter needs to catch up when I type, and moving lines up and down becomes a nightmare. Keystrokes also get swallowed from time to time which makes things unusable.
Turning the extension off seems to fix the issue, but I really don't want to. Also please note that this was never a problem with VS Code Vim until recently. I can reproduce it on both Windows and Mac machines. Tried fresh reinstallation, but it doesn't do anything.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
There shouldn't be any lag for basic operations and typing
Screenshots
With VS Code Vim ON
With VS Code Vim OFF
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: