[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

vim folding for c code



hi all:

i am trying to setup folding for c code in gvim
i put this in my .vimrc
augroup C
    au FileType c set foldenable foldmethod=syntax
    au FileType c syn region Comment start="/\*" end="\*/" fold
augroup END

but when i open a c file the syntax hiligth is ok but the folding does't
work...
for other filetypes like .diff it works ok

my version is vim-gtk (6.2-532+4)


thanks

-- 
Alex Lorca



Reply to: