I'm having a problem with VIm recognizing the fold level lines in a document. I have a syntax file with a number of folded regions defined. I can consistently add a new line in a way that makes Vim fail to adjust the new line to have the proper fold level. If I execute 'syn sync fromstart' manually (or any other sync command) the foldlevel gets adjusted properly.
A couple of questions: (1) any ideas on what could be causing this or how to fix it, so that the fold level is adjusted automatically upon adding the new line? Is it normal to "fall out of sync" like this? (Previously I was using a fold expression to assign fold levels and I don't recall it fallling out of sync at all.) (3) I have noticed no speed difference between any of the "syn sync" variations that I use to resync the document. I've used minlines, maxlines,and the "syn sync match . . . " versions of the sync command and as far as I can tell all have the same speed as a full 'syn sync fromstart.' For example, if I simply copy and repeat the sections of a 500 line document to create a large 40,000 line document, all of the sync commands take about 2 or 3 seconds to execute. My understanding is that the versions other than 'fromstart' should be faster. Certainly there is plenty of repeated regions in this doc where syncing could reliably begin in middle of doc, I'm wondering why all sync methods seem as slow as 'fromstart'. I've read the manual sections on syncing and they haven't cleared things up for me. Thanks for any help. -- Herb --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
