On 30 April 2015, Rich <[email protected]> wrote:
> Hi
>
> I've noticed since using foldexpr that <C-N> and particularly <C-X>L
> are really slow (like up to 10 seconds on the latter in a big file).
>
> I noticed that if I set fdm=manual before doing the autocomplete, it's
> as fast as you like.
>
> I asked the question at
> http://vi.stackexchange.com/questions/3128/is-there-a-way-to-disable-the-foldexpr-during-autocomplete
> and someone suggested asking here.
>
> Advice?
>
> Thanks.
> Rich
>
> PS. If you want more details, the slowest I've encountered is
> editing a medium sized (few 1000LOC) Python script, using
> https://github.com/tmhedberg/SimpylFold but it happened in PHP when
> I was using a foldexpr for that, too.
How can you tell the problem is not SimpylFold? You can get a
profile trace for SimpylFold with something like this:
profile start SimpylFold.log
profile! file */SimpylFold/*
(assuming SimpylFold lives in a directory imaginatively named
SimpylFold). These lines have to be executed before SimpylFold is
loaded (thus put them before pathogen / Vundle / Plug / whatever).
If you find that SimpylFold is not the culprit, a complete
(preferably minimal) example of slowdown that doesn't involve plugins
would be useful.
/lcd
--
--
You received this message from the "vim_dev" 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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.