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

Reply via email to