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.
-- 
A physicist is an atom's way of knowing about atoms.
                -- George Wald


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

Raspunde prin e-mail lui