C++ 如何编辑c-support(c.vim)代码段

C++ 如何编辑c-support(c.vim)代码段,c++,c,vim,C++,C,Vim,我真的不喜欢在返回类型的函数上使用默认缩进,例如。 \im(对于主函数,返回类型缩进)。我想返回类型不缩进 文档说明--我应该将代码段$HOME\vimfiles\c-support\codesnippets\main.c重命名为main.c.ni(或main.c.nonindent)。但这并没有解决问题 还有其他想法吗 默认情况下,带有c-support的gvim会添加以下内容 int main ( int argc, char *argv[] ) { return

我真的不喜欢在返回类型的函数上使用默认缩进,例如。 \im(对于主函数,返回类型缩进)。我想返回类型不缩进

文档说明--我应该将代码段$HOME\vimfiles\c-support\codesnippets\main.c重命名为main.c.ni(或main.c.nonindent)。但这并没有解决问题

还有其他想法吗

默认情况下,带有c-support的gvim会添加以下内容

     int
 main ( int argc, char *argv[] )
 {

     return EXIT_SUCCESS;
 }              /* ----------  end of function main  ---------- */
相反,我想要这个

 int
 main ( int argc, char *argv[] )
 {

     return EXIT_SUCCESS;
 }

请看一下
:help cinoptions
:help cinoptions值


你想要的可能是
:set cinoptions=t0
:set cinoptions+=t0

你能给我们一些例子说明VIM做什么以及你希望它做什么吗?@DeepYellow-我已经添加了gvim做什么和我希望它做什么。谢谢