AW: Synchronize syntax highlighting

18 views
Skip to first unread message

Janis Papanagnou

unread,
Aug 9, 2026, 9:52:46 AM (21 hours ago) Aug 9
to 'John Jackson' via vim_use
Sorry, John, somehow my mail-client sent my email to you instead of the mailing list.

________________________________________
Von: Janis Papanagnou <janis_pa...@hotmail.com>
Gesendet: Sonntag, 9. August 2026 12:48
An: 'John Jackson' via vim_use
Betreff: Synchronize syntax highlighting

Sometimes, for some files, the sync of syntax-highlighting fails
(i.e. all text gets uniformly colored).

In the past, to tackle that, I've adjusted some vim parameter,
increased a value from something like 3000 to 10000, or so.
On my new system that setting got lost, unfortunately, and I
cannot find it.

Can someone point me to the name of that parameter, please,
so that I can re-establish a better highlighting-sync behavior.

Thanks!

Janis

Janis Papanagnou

unread,
Aug 9, 2026, 9:53:55 AM (21 hours ago) Aug 9
to 'John Jackson' via vim_use

Tim Chase

unread,
Aug 9, 2026, 9:57:10 AM (21 hours ago) Aug 9
to vim...@googlegroups.com
On 2026-08-09 10:48, Janis Papanagnou wrote:
> Sometimes, for some files, the sync of syntax-highlighting fails
> (i.e. all text gets uniformly colored).
>
> In the past, to tackle that, I've adjusted some vim parameter,
> increased a value from something like 3000 to 10000, or so.
> On my new system that setting got lost, unfortunately, and I
> cannot find it.

I think you're looking for the minlines= and maxlines= values described
here:

:help syn-sync-maxlines
:help syn-sync-third

-tim
--





Christian Brabandt

unread,
Aug 9, 2026, 11:17:41 AM (20 hours ago) Aug 9
to vim...@googlegroups.com
:h 'synmaxcol'

Best,
Christian
--
QOTD:
"I drive my car quietly, for it goes without saying."
Reply all
Reply to author
Forward
0 new messages