Jay Atkinson wrote:

> I seem to be having a problem with the default syntax folding in Vim 7.0.
> The syntax folding seems to get confused whenever there is a statement like
> this:
> 
> a = (b == 0) ? 1 : 2;
> 
> After a statement like that, the folding just collapses everything after
> that statement into one fold.  It normally highlights all the following
> curly braces in red as well.  Has anyone stumbled across this problem and
> come up with a fix?

It appears to work fine for me.

Try this:
        vim -u NONE yourfile.c
        source $VIMRUNTIME/syntax/c.vim
        set foldmethod=syntax

Does it still happen then?  If not then you have something added to the
C syntax that causes the problem.

-- 
hundred-and-one symptoms of being an internet addict:
241. You try to look for Net Search even when you're in File Manager.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to