> > So I wonder what 'set foldtype=c' internally does to reenable folding.
> Internally, setting filetype=c will re-apply the syntax highlighting, > which will re-calculate all the folds. Thank You for the information. > You can try using zx, zX, or :syn sync fromstart to see if those have > any effect. I was not aware of the first two and I will try. Regarding :syn sync fromstart -- This does not always help and that is the point here. In some situations only the above mentioned command (:set filetype=c) helps. > The first two will have the additional effect of closing > any manually opened folds, the third will make syntax highlighting > slower. What do you mean by "make ... slower"? You mean permanently? Unfortunatelly I need to launch this third command quite often since the syntax folding gets confused too easily. > Do existing folds stay as they were, and just a new fold refuses to > show up, or are all folds removed? In the addressed situtation ALL folds refuse to fold. And, I think, all folds are open in that case (not 100% sure). 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
