I like to use vim to program c and c++, but I am disappointed to use the folding scheme, because I have a lot of definition in C.
Such as
CONFIG_A_DEFINEDED
CONFIG_B_DEFINEDED
CONFIG_C_DEFINEDED
For example:
#if config_a_defineded
..
#endif
#if config_b_defineded
..
#endif
...
My question is: Are there ways for folding in vim to use sting predefined in files or something like that? Suggestions or any kind of help is highly appreciated.