Vim format in gcc source?

Jonathan Wakely jwakely.gcc@gmail.com
Mon Mar 3 09:37:00 GMT 2014


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,g0 comments=sr:/*,mb:*,el:*/,://
setl cinoptions+=,{1s,>2s,n-1s
setl noet



More information about the Gcc mailing list