2016-01-08 2:12 GMT+03:00 Gregory Pakosz <[email protected]>:

> I have lazyredraw enabled and regexpengine set to 0.
>
> In my case, it's foldmethod=syntax being responsible for the lag
>
>   TOTAL      COUNT  MATCH   SLOWEST     AVERAGE   NAME               PATTERN
> 4.496335   17040  104     0.021650    0.000264  rubyConditionalExpression 
> \%(\%(^\|\.\.\.\=\|[{:,;([<>~\*%&^|+=-]\|\%(\<[_[:lower:]][_[:alnum:]]*\)\@<![?!]\)\s*\)\@<=\%(\\\n\s*\)\@<!
>
> Forcing set regexpengine=1 doesn't improve the situation.
>

​I see this pattern having quite a large number of look-behinds. Forcing
maximum amount of bytes here may help (search for `\@123<=` in `:h ​/\@<=`,
for some reason this does not have its own tag). Contacting syntax file
maintainer is needed to perform this change, I am not sure what numbers you
should exactly place there.

Most likely using \@100<! in place of \@<! (two occurences) and \@100<=
(one I see so far) should work fine.



> —
> Reply to this email directly or view it on GitHub
> <https://github.com/vim/vim/issues/282#issuecomment-169837021>.
>
> --
> --
> 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.
>

-- 
-- 
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.

Raspunde prin e-mail lui