Christian Brabandt wrote:
Hi Ben!

On Mo, 22 Aug 2011, Ben wrote:

I wanted to add, that it is still highlighted correctly (as comment),
it is just not folded.
What is your foldmethod set to?

Hello,

The following short C file illustrates this problem:

/* abc.c: */
#include <stdio.h>

#if 0
int main()
{
printf("testing\n");
return 0;
}
#endif

/* Modelines:
 *  vim: fdm=syntax
 */

The #if 0 ... #endif region does not fold (and the modeline has set fdm to syntax). I see this behavior with

  vim -u NONE -N --noplugins abc.c
  :syn on

The modelines comment does fold, thereby indicating that the syntax-based folding is active.

Version information:

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Aug 22 2011 12:23:56)
Included patches: 1-285
Compiled by cecam...@xorn.gsfc.nasa.gov
Huge version with GTK2 GUI.  Features included (+) or not (-):
...snipped...

Regards,
Chip Campbell

--
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

Reply via email to