[changing the subject to something meaningful]

> I have a longer xml file (2mb) and the syntax folding seems to get confused 
> within an element. When i do a za on one of the elements that is folded, 
> instead 
> of that opening, i get another dash at the beginning of the line, like this:
> 
> Before:
> 
> +--4471 lines:
> 
> after za:
> 
> +---4471 lines:
> 
> and that continues on for about three more presses of the za sequence, each 
> one 
> adding another '-' to the above line, until the fold opens, but even then it 
> looks confused.
> 
> Can anyone provide some other things to look at to explain this? AFAIK, the 
> xml 
> document is valid.

My guess would be that the syntax syncing gets out of whack which 
takes the folding out with it as it falls over.  You can tell Vim 
that you want syntax synchronization to start from the beginning 
of the file, but this comes with performance-related issues.

   :help :syn-sync

particularly this section:

   :help :syn-sync-first

shows how to force vim to sync up from the beginning of the file.

-tim




--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

  • [no subject] russurquhart1
    • Re: Syntax folding + syncing Tim Chase
    • Re: Matt Wozniski
      • Re: Ben Fritz
        • Re: Matt Wozniski

Reply via email to