In our project, there will be
#ifdef __cplusplus
extern "C" {
#endif
int foobar(); // <-- vim auto indent it
how to set vimrc or c-support let vim not auto indent just for extern "C" beside use Marco to replace the extern "C" {?
I found extern "C" { //}
works for me. Not sure if this depends on any specific
cindent
or cino
settings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With