On Thu, Feb 21, 2008 at 3:42 AM, Tony Mechelynck
<[EMAIL PROTECTED]> wrote:
>
>  Patrick Texier wrote:
>  > Le Tue, 19 Feb 2008 23:39:34 +0100, Dominique Pelle a écrit dans le
>  > message <[EMAIL PROTECTED]> :
>  >
>  >> It initially works fine, but when I scroll up, only
>  >> 1 line (sometimes 2) get highlighted instead of 3.
>  >
>  > After a scroll up, Vim highlights a multiline pattern only if first line
>  > is displayed. When first line is reached, only new lines get highlighted
>  > (others are not redrawed).
>
>
>  Well,
>
>         :syn sync
>
>  will tell you how far Vim looks for syntax analysis. (I didn't find it in the
>  help, but ":syn sync" with no additional arguments will tell you the current
>  setting.)
>
>  You may want to use
>
>         :syn sync fromstart
>
>  in files where the syntax goes a long way back; but use it sparingly, since 
> of
>  course it is the slowest method. I used it for a series of HTML pages which
>  were almost entirely in italics (i.e., with an <i> tag opened near the top of
>  the file and closed near the bottom): nothing else would work there, to 
> render
>  those italics correctly (when the cursor found itself some place rather far
>  down, after a closedown and restart).
>
>
>  Best regards,
>  Tony.


I just tried to set ":syn sync fromstart" but it does not help here.

It's not a syntax highlighting problem anyway, but a hlsearch/redraw
issue.  In fact, I reproduce the bug with ":syntax off".

I tried setting ":set redrawtime" with different values but it does not
help either.

-- Dominique

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui