If VSCodeVim is slow for you, please thumbs up this comment.
Research:
Only inserting keys is noticeably laggy (and enter is by far the worst). Holding down h or l for instance is not laggy. (Please chime in if you are finding something different!)
It's also much worse on larger files (actions.ts is good for this).
Perf investigation branch here https://github.com/VSCodeVim/Vim/tree/perf
To the people who thumbs uped this issue, let me know if my recent commit on master had any benefits for you. Things seem to be about twice as fast on my benchmarks.
I'm using 0.3.7. Ctrl+e and ctrl+y are laggy
Regarding my recent comment about ctrl+e and ctrl+y being slow. I added the following to keybindings.json and it's fast now:
{ "key": "ctrl+e", "command": "scrollLineUp",
"when": "editorTextFocus" },
{ "key": "ctrl+y", "command": "scrollLineDown",
"when": "editorTextFocus" }
That probably bypasses the vim version of the key combos.
I had my ctrl+e and ctrl+y swapped, btw. :)
That is very interesting, @quang4ngo! Your fix seems like an adequate solution :) Feel free to open up a PR.
It's interesting that C-e and C-y would be so laggy anyways, since they shouldn't really be doing anything, so that's worth investigating as well!
@johnfn On 0.4.0, extending multiple cursors using the vim command (extension.vim_cmd+alt+down) is really laggy, but binding directly to editor.action.insertCursorBelow performs normally.
You can replicate this by setting a high key-repeat rate and holding down Cmd+Alt+Down (or Ctrl+Alt+Down).
For me, the performance on Windows 10 Anniversary build was quite bad compared to macOS Sierra.
With the latest update (0.4.7) the extension has become almost unusable. Basic navigation with hjkl and regular typing after i often take a second after each keypress. No extensions are enabled, latest version of VS Code.
@dustinboston investigating right now!
@dustinboston Can you check version 0.4.8 to see if the perf issues you were seeing still exist?
As of b2b2b97494aca2ca5568e544e601247ecebc2bd1, <C-e> is no longer laggy.
It's perfect! Thank you! 馃憦 馃帀 馃巻
That's what I like to hear! 馃槈
Anyone else, feel free to tune in if you have perf issues.
@johnfn https://github.com/VSCodeVim/Vim/issues/897#issuecomment-256408534 is still an issue for me.
I don't believe this is an issue any more.
If you continue to have problems with performance, please thumbs this specific comment up. (Also, please leave a comment if the number starts getting high and I haven't noticed, since thumbs don't create notifications.)
(Also if you could leave a comment detailing what specifically you have perf issues with, that would be useful.)
Hi, I am using this extension along with vscode-go and experiencing lags when editing large files with 5k lines (slow move on insert mode and slow autocompletion). After disabling the vim extension, it becomes normal again.
@asasmoyo do you have neovim integration enabled? Could you try disabling that?
@Chillee no i didn't use neovim integration. i just tried it again with default settings but it still slow.
is there a way to benchmark vscode so that i can know what make my vscode slow? there is also the possibility it becomes slow because of other settings / packages
I'm not aware of any ways other than disabling and enabling packages.
Could you verify that the slowdown occurs when you're only using VsCodeVim?
When I use only VsCodeVim, moving around using keyboard is fast. But when I enable vscode-go, it starts getting slow when moving around using keyboard. Does this mean the go plugin that make it slow?
@asasmoyo What about if you just enable vscode-go?
It's possible there's some kind of weird interaction between the two.
there's noticeable delay on autocompletion, but moving around using keyboard feels normal
Most helpful comment
I don't believe this is an issue any more.
If you continue to have problems with performance, please thumbs this specific comment up. (Also, please leave a comment if the number starts getting high and I haven't noticed, since thumbs don't create notifications.)