-
Notifications
You must be signed in to change notification settings - Fork 214
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
very slow when used with syntax highlighting #25
Comments
Is it just some ruby files where you notice this, or all of them? If you start vim with the minimal settings does the problem still occur?
Note: if supertab is in a pathogen or similar directory, then you'll need to add a |
I followed the route you suggested and found there was no problem with minimal settings, and then I eventually managed to figure out the root of the problem --
If ruby_fold is not enabled things work fine, or if ruby_fold is enabled and syntax highlighting is off things work fine. This explains why the problem occurs sporadically -- in the same file, tab completion is very slow in one place but fast in another. I suppose the solution for now will have to be to turn ruby_fold off and try to find an alternative. |
Thanks for posting an update, it's good to know the cause should other users encounter the same issue. I'm going to go ahead and close this ticket though since inefficient syntax files are outside the scope of supertab ;). |
I'm mostly editing ruby files, and I noticed that supertab was being incredibly slow in some places (6 seconds for a simple completion without many buffers open). investigating more, i found that if i set "syntax off", supertab behaved much much faster. at the same time, the syntax highlighting doesn't significantly affect vim's performance outside of using supertab. any ideas on why syntax highlighting causes supertab specifically to behave so slowly?
The text was updated successfully, but these errors were encountered: