vim - when using plugin cvim, \if meas insert a function with comments. but the format is wrong -


well, title says. following looks in c++ source code:

  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  ----- */ 

when looked c-support/templates/cpp.idioms.template or c-support/templates/c.idioms.template right.

it seems when insert template code ,vim format again itself.

can me?

the automatic indenting interferes way template inserted. should report issue plugin's author.

you can temporarily work around problem turning off indenting; depending on indent settings 1 of:

:set nocindent noautoindent nosmartindent indentexpr= 

Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -