嗯,正如标题所说。下面是我的c++源代码中现在的样子:
1
2 /*
3 * === FUNCTION =============================================================
4 * Name: sample_function
5 * Description:
6 * =============================================================================
7 */
8 void sample_function ( <+argument_list+> )
9 {
10 return <+return_value+>;
11 } /* ----- end of function sample_function ----- */当我查找c-support/templates/cpp.idioms.template或c-support/template/c.idioms.template时,一切都是正确的。
似乎在插入模板代码时,vim会自动重新格式化它。
有人能帮我吗?
发布于 2013-03-13 15:41:30
自动缩进会干扰模板的插入方式。你应该把这个问题报告给插件的作者。
您可以通过关闭缩进暂时解决此问题;根据缩进设置的不同,可以执行以下操作之一:
:set nocindent noautoindent nosmartindent indentexpr=https://stackoverflow.com/questions/15377524
复制相似问题