Tuesday, November 30, 2010

folding refused, set filetype=c helps, why?

Hi,

I use syntax based folding in C code (vim 7.3.50). Sometimes when code
is changed folding is refused completely, e.g. zc does not fold
anymore. I found out that resetting the filetype helps (set
filetype=c), although a previous check (set filetype? and set
foldmethod?) shows that is was already c / syntax.

So I wonder what 'set foldtype=c' internally does to reenable folding.
Maybe this is a hint to solve this misbehaviour...

Felix

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment