I have the following in my .vimrc
to indent the whole file:
nnoremap cu gg=G``
I have a problem using this in source files that have
#ifdef __cplusplus
extern "C"
{
#endif
// code
#ifdef __cplusplus
}
#endif
This makes vim shift all the functions one tab to the right. This makes it inconsistent with my colleagues who don't use vim and it also annoys me. Is there a way to tell vim to ignore these brakets of extern "C"
?