Jul 16, 2009 07:31:02 PM, [email protected] wrote:


[changing the subject to something meaningful]

Thank you, first pass i had a subject, but the browser timed out.

> 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.
>


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.

I had tried that, after doing some research, but it doesn't have any effect. Everything worked the same way, again.

I did a
:syntax sync fromstart

then did a :e to reload the file. Same results.

Russ




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

Reply via email to