Re: Vim format in gcc source?

2014-03-03 Thread lin zuojian
Thx,Jonathan. -- Regards lin zuojian On Mon, Mar 03, 2014 at 09:37:01AM +, Jonathan Wakely wrote: > On 3 March 2014 07:00, lin zuojian wrote: > > Hi guys, > > How do I set the format of vim,so that my code doen't look alien? > > Do you mean how do you set vim to match the GCC coding style

Re: Vim format in gcc source?

2014-03-03 Thread Jonathan Wakely
On 3 March 2014 07:00, lin zuojian wrote: > Hi guys, > How do I set the format of vim,so that my code doen't look alien? Do you mean how do you set vim to match the GCC coding style? It's not quite right, and it's mostly used for C++, but I use: setl formatoptions=croql cindent cinoptions=:0

Vim format in gcc source?

2014-03-02 Thread lin zuojian
Hi guys, How do I set the format of vim,so that my code doen't look alien? -- Regards lin zuojian