hronizing", see :help syn-sync. The idea is that, to save time on large
files, vim will only start figuring out syntax highlighting by going
back a certain number of lines (minlines=50, I think) and work forwards
from there. For a long """ ... """ section this means it starts in the
middle of the text and gets it wrong.
If this is a regular problem for you, you can try increase the minlines
option (:syntax syn minlines=200), or to be really sure, by setting
":syntax sync fromstart", which tells Vim that, no matter how big the
file, go right to the start to figure it out (with the possibility of a
long wait).
Can you try that out and see how you get on?
** Changed in: vim (Ubuntu)
Status: New => Incomplete
--
erroneous Python syntax formatting when opening a file
https://bugs.launchpad.net/bugs/481369
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs