Raúl Núñez de Arenas Coronado wrote: > Saluton <[email protected]> :) > > <[email protected]> dixit: > >> My xml files are of a form: >> >> <userDoc> <GenSection> ... </GenSection> </userDoc> >> >> When i did the syntax folding on a sample, albeit large (1.8 Mb) xml >> file, the closing </userDoc> tag seems to be folded in the >> <GenSection> fold. Everything, however, works when i try this on a >> smaller sample file. Is there something about the xml syntax file that >> might explain this? >> > > Blind shot, from ":help syntax": > > :syntax sync fromstart > :syntax syng minlines=<number big enough> > > The second line may result in very slow redrawing and highlighting, I > haven't tested it. > > I swear I saw once an option to fix this kind of things, but I cannot > remember. Looks like Charles Campbell has updated the conversation while > I was replying, so he may be of help. > >
Hello! Essentially Raúl Núñez de Arenas Coronado's help is referring to the same solution as my succinct one (although that "syn syng..." was also meant to be "syn sync ..."). Both of these solutions are slower than the default synchronization; syn sync fromstart will likely always be the slowest or, at best, equal to the other. The simple reason: it causes syntax checking for all lines. This method yields the most correct synchronization at the price of a certain lack of speed. Regards, Chip Campbell --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
