On 2012-04-30 10:54:46, John Reiter wrote:
> I don't think this is a problem with eclim specifically, but on the
> topic of code completion... does anyone else have any issues with
> slowness scrolling through the completion results? The completion
> options always appear very quickly for me, but actually scrolling
> through them is always very slow.
>
> John
I run into laggy scrolling here and there but I've never taken the
time to see exactly what was causing it... until today ;)
I first made sure that I could reliably reproduce laggy scrolling with
a simple completion function completely outside the scope of eclim,
that just returns a large list of static completions. I then went
through a lot of commenting out settings and such until I narrowed the
issue down to the following line in my ~/.vim/ftplugin/java/java.vim
file:
setlocal foldmethod=syntax
Without that line scrolling through the completions is now very smooth
for me. I'm not exactly sure what that triggers under the covers
(probably recalculating folds in the file for every text change, and
hence every time you scroll up/down the completion list), but my first
hint that this was syntax related was noticing that the scrolling
became very smooth if I turned off syntax highlighting altogether
(:syntax off).
You can check if you have this particular option set by running:
:verbose set foldmethod?
That will tell you what that option is set to, and if set in one of
your vim files, it will also tell you which file set it. If you
haven't set that option or it's set to something other than 'syntax',
you might want to play with commenting out any syntax related options
you may have set until you find the culprit.
Let me know what you find or if you need help narrowing the issue
down.
In the future I'd also prefer if you created a new email thread for
unrelated issues... it makes it easier to find things later based on
the email subject.
--
eric