I've tried various suggestions (minlines, synmaxcol, etc.), read the manual for information about possible tweaks searched the web, ... - to no avail! Trying with various numbers in configs like set smc=9000 syntax sync minlines=1000 maxlines=1000 I'm still getting no sync in a (even non-demanding) test case: opening a 476 line file, max. columns 84 => highlighting okay, searching for a text that appears in line 438 => NO SYNC here! (After scrolling 3 pages up the sync was okay again.) More testing... Opened a 80x25 terminal window. Same testcase as above. => highlighting okay!!! Resized the terminal window to 120x50. Opened the file again, same testcase => NO SYNC ! Resized the terminal window back to 80x25. Opened the file again, same testcase => highlighting okay This is strange!!! Highlighting depends on the terminal size, not on the actual text! $ vi --version VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Jul 13 2026 17:17:48) Included patches: 1-16, 647, 678, 697 Modified by team+vim@tracker.debian.org If you have some more config options to try out I'd be keen to hear. Thanks! Janis ________________________________________ Von: vim_use@googlegroups.com <vim_use@googlegroups.com> im Auftrag von Christian Brabandt <cblists@256bit.org> Gesendet: Sonntag, 9. August 2026 17:17 An: vim_use@googlegroups.com Betreff: Re: Synchronize syntax highlighting On So, 09 Aug 2026, 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. > > Can someone point me to the name of that parameter, please, > so that I can re-establish a better highlighting-sync behavior. :h 'synmaxcol' Best, Christian -- QOTD: "I drive my car quietly, for it goes without saying." -- -- You received this message from the "vim_use" 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_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_use/aniZ/O7l6XfNFoal%40256bit.org. -- -- You received this message from the "vim_use" 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_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_use/AS2SPRMB00541D5B0B40A1B43A60A99CF3DE2%40AS2SPRMB0054.eurprd05.prod.outlook.com.
Monday, August 10, 2026
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment