MacVim + SuperTab + Perl source = VERY slow

109 views
Skip to first unread message

Stanislaw Pusep

unread,
Jan 18, 2012, 2:20:17 PM1/18/12
to vim...@googlegroups.com
Hi everyone!
The subject says everything, a few remarks:

1) It's NOT a SuperTab fault; Ctrl-N/Ctrl-P is slow also! However, it's easier for me to refer to the whole concept of "tab completion";
2) I use MacVim from MacPorts;
4) Text-mode vim (also from MacPorts) is fast, so it's not filesystem/libs/modules related;
5) If I start typing some local variable name and then hit tab, MacVim hangs for some seconds and then the variable name appears;
6) However, if I hit tab followed by Ctrl-C, variable name completes instantly;
7) Non-Perl (SQL, for instance) source completion is fast.

Any clues on how to debug this?
Thanks in advance!

björn

unread,
Jan 25, 2012, 3:47:56 AM1/25/12
to vim...@googlegroups.com

I can reproduce and I think I know what the problem is. I'll see what
I can do about it.

Björn

Stanislaw Pusep

unread,
Jan 26, 2012, 11:49:07 AM1/26/12
to vim...@googlegroups.com
Great, thanks in advance!


Björn

--
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

björn

unread,
Jan 29, 2012, 8:00:05 AM1/29/12
to vim...@googlegroups.com

So the problem was that Vim was searching through include files and
MacVim is very conservative about flushing so it would not flush until
after the search finished. I've made it flush a bit more aggressively
now so that at least in the cases I've tried it no longer stalls.

Björn

Stanislaw Pusep

unread,
Jan 29, 2012, 2:37:01 PM1/29/12
to vim...@googlegroups.com
Just recompiled MacVim and the completion is fast now.
Thank you very much!


Björn

Reply all
Reply to author
Forward
0 new messages