On 2013-08-09, Linda W wrote:
> Gary Johnson wrote:
> >The following problem appears in vim 7.3.882 and 7.4b.19 on Linux.
> ----
> I've seen similar behavior on any version of vim.  Are you sure
> you have your synchronization buffer set high enough for your
> lang?  It seems to be a different variable for each language...
> 
> like
> "C", it says
>   If you notice highlighting errors while scrolling backwards, which
> are fixed
>   when redrawing with CTRL-L, try setting the "c_minlines" internal
> variable
>   to a larger number: >
>       :let c_minlines = 100

As I wrote originally, I'm trying to highlight the output of a
static analysis tool.  It happens to be Klocwork's kwcheck program.
In the plugin that runs the analysis and captures the output into a
buffer, I have

    setlocal filetype=klocwork

(Yes, I know 'filetype' doesn't have to be set with :setlocal, but
it looks better along with all the other :setlocal settings.)

Then I also have a klocwork.vim file in my local syntax directory
that has in it

    syn sync fromstart

along with the ":syn match ...", etc., lines.  That was one of the
first things I tried when I discovered the problem, but it doesn't
help.

It seems to be a bug in Vim's handling of these two factors when
present together:

    *   A syn match pattern containing "\zs\n";
    *   The redrawing that occurs when scrolling backwards by lines.

Regards,
Gary

-- 
-- 
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/groups/opt_out.


Raspunde prin e-mail lui