spf13-vim icon indicating copy to clipboard operation
spf13-vim copied to clipboard

Can't fold codes with the command zc...

Open razrLeLe opened this issue 10 years ago • 1 comments

I used to use zc to fold functions , now I find that every time I use it to fold my cpp codes like this

int foo()
{
    retturn 1;
}

it returns E490: No fold found.

I have tried set foldmethod=manual in .vimrc_local but it doesn't work, while other commands like zf always work, I guess there must be some plugin setting having influence the original folding function, I am wondering how I can use back zc like before....

razrLeLe avatar Apr 29 '15 10:04 razrLeLe

Try set foldmethod=syntax

zc seems to work after that.

rkrp avatar Jun 23 '18 09:06 rkrp