I am using foldmethod=syntax
in my .vimrc
file. It works well with C functions like this one:
int some_fun(int i) {
return i;
}
However, it won't work with functions, which have a break line in the first line:
int some_fun2(int i,
int i2) {
return i;
}
Can I make Vim understand that fold should begin not where {
is but where the function definition begins?