I really dislike the default indentation used on return type of functions, e.g. \im (for main function has the return type indented). I would like return type not indented.
Documentation says -- I should rename the snippet $HOME\vimfiles\c-support\codesnippets\main.c to main.c.ni (or main.c.nonindent). But that did not fix the problem.
Any other ideas ?
gvim with c-support by default adds this
int
main ( int argc, char *argv[] )
{
return EXIT_SUCCESS;
} /* ---------- end of function main ---------- */
instead, I would like this
int
main ( int argc, char *argv[] )
{
return EXIT_SUCCESS;
}
Please, have a look at :help cinoptions and :help cinoptions-values.
What you want is probably :set cinoptions=t0 or :set cinoptions+=t0.
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