Jul 18, 2009 04:09:23 PM, [email protected] wrote:
>>
>
> Hmm, I don't think so. From the original email, the OP starts his edit
> session of this xml file with:
>
> :let g:xml_syntax_folding = 1
> :set foldmethod=syntax
> :set synmaxcol=0
> :e
Oh, oops! Hm.. Does the syntax highlighting itself look OK? If it
got so confused that it couldn't tell which open tags went with which
close tags, I'd expect that you'd be able to see it from the
highlighting...
~Matt
The syntax highlighting DID look confused! But i think i may have found a solution .
I tried this again on a smallerish file, right at 1Mb in size, and still the same problem. I noticed then that, for this file, The entire body of xml was on ONE line. There were NO linebreaks within this xml element. And moving around within the document was kind of slow and it couldn't find that the first element should have been a fold.
I put a linefeed between every '><' pair, and each of the files loaded and folded nicely, and moving between the folds was very nice.
This make me think that there is something within the xml syntax /folding mechanism that, even though :set synmaxcol=0 is set, it still kind of chokes on long lines, but has little problems when the lines are broken up.
I don't know if this should be classified as a bug or not. While xml, syntactically doesn't need to have line breaks, realistically, you probably would if it were created manually.
So, is this a bug of sorts?
Thanks for all the help!
Russ
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
