Monday, August 10, 2026

Re: Synchronize syntax highlighting

On Mo, 10 Aug 2026, Janis Papanagnou wrote: > 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! does :syn sync fromstart help? This depends on the current syntax script and file being used, but it is worth a try when this happens. I suppose this happens with algol68 files? This has a hard-coded limit of 500 lines. It is not generally recommended to use syn sync fromstart in syntax script, because it comes with a performance penalty, but in cases when you notice syntax being off, it is worth a try. Best, Christian -- -- -- 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/anoekP02s6s1AliB%40256bit.org.

AW: Synchronize syntax highlighting

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.

Sunday, August 9, 2026

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.

Re: Synchronize syntax highlighting

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 -- -- -- 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/aniHL3avVmnNL3nP%40thechases.com.

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 -- -- 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/AS2SPRMB0054888E7352B5254DA6384EF3DF2%40AS2SPRMB0054.eurprd05.prod.outlook.com.

AW: Synchronize syntax highlighting

Sorry, John, somehow my mail-client sent my email to you instead of the mailing list. ________________________________________ Von: Janis Papanagnou <janis_papanagnou@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 -- -- 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/AS2SPRMB0054564FC119CABBF1BAC3EFF3DF2%40AS2SPRMB0054.eurprd05.prod.outlook.com.

Friday, August 7, 2026

Re: Re: Vim on Debian Mint Linux

 

------ Original Message ------
From: eajmarceau@gmail.com
To: vim_use@googlegroups.com
Sent: Friday, August 7th 2026, 18:15
Subject: Re: Vim on Debian Mint Linux
 

    "Does it do PDFs as on Windows?"

If you mean, edit the PDF as a text file, leaving the encoded elements as is, the response is yes.


 

For any Debian-based system, the method to install is to open a shell in a terminal and enter the command,

  • sudo apt-get install vim-gtk3 (vim-gui-common)

Or look for the vim-gtk3 package from within Synaptic, and install that way.


 

Eric


 

On 2026-08-07 11:53, 'c.willis111 ' via vim_use wrote:
 

Hi

 

how do I install vim on debian mint Linux?

 

Does it do PDFs as on Windows?

 

regards - Chris

 

 

-- 
-- 
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 unsubscribe@googlegroups.com" class="moz-txt-link-freetext">vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/344fdc93.1e04.19fdcede606.Webtop.1%40btinternet.com.
 

 

-- 
-- 
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 unsubscribe@googlegroups.com">vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/22082605-9693-43f2-a059-18f1ea3a408f%40gmail.com.
Hi

 

thanks both Eric and Marco

 

Eric, in Windows Vim on a PDF preprocesses the file using PdfTk,, and restores the compression afterwards, likewise. This shows the content streams as clear text. I suspect that PdfTk doesn't work on Linux?

 

The post processing sorts out the length attributes that the compression and edits have changed.

 

regards - Chris

--
--
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/79d0729e.72fff.19fde4ec6a2.Webtop.227%40btinternet.com.