2015-06-01 16:14 GMT+03:00 Atte Peltomäki <[email protected]>:
> Vim includes AsciiDoc syntax highlight definition, but it's very, very slow. 
> Fix attached.
>
> Disclaimer: I don't really understand what the removed options are for, but 
> removing them fixes the issue without causing perceivable adverse effects.

:syn clear is useless because it is what Vim is doing in any case.
(Maybe even harmful because I think it will make using :syn include
impossible.) According to some other syntax files this was needed
prior to vim-6.0.

:syn sync options determine from which position in the file it should
start processing syntax rules in case file is drawn not from the start
or what part of the file should be rehighlighted in case something was
edited. fromstart and linebreaks=100 are rather strange choices: first
means that file should always be highlighted from the very beginning,
second means that changes drop syntax caches from a hundred of
previous lines. Of course this is fucking slow.

Also AFAIK Vim is doing much less aggressive caching then it could be,
which makes such options perform even slower.

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