[Bug 481369] Re: erroneous Python syntax formatting when opening a file
[Expired for vim (Ubuntu) because there has been no activity for 60 days.] ** Changed in: vim (Ubuntu) Status: Incomplete => Expired -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 481369] Re: erroneous Python syntax formatting when opening a file
Sorry for the delay in responding. Your explanation for the cause of the problem makes a lot of sense. I will be creating a test case file to examine this to confirm if that this is the case. -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 481369] Re: erroneous Python syntax formatting when opening a file
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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs