1

My Vim is kinda slow for nearly everything. Opening a file takes five seconds, it flickers when I move up and down NerdTree and sometimes when I switch windows or tabs, it freezes for dozens of seconds.

I have a lot of plugins enabled, plus webpack watch running. I have htop running on a separate monitor, and sometimes the 4 CPUs go 100% when I save a file(that's because of webpack), so this bottleneck is understandable.

But the others cited above are not. How do I get to know what exactly is causing these bottlenecks in my Vim? Is there a way to know this without experimenting disabling plugins, etc?

  • Does it happens also for short files? Typically, the syntax highlighter can be slow for big files. – peterh Jan 18 '18 at 12:54
  • Good point! Files that are not .js open instantly – Alex Alonso Jan 18 '18 at 13:30
  • Then don't use such big files, or turn off somehow the syntax highlighter for them :-) – peterh Jan 18 '18 at 13:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.