Thx,Jonathan.
--
Regards
lin zuojian

On Mon, Mar 03, 2014 at 09:37:01AM +0000, 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?
> 
> 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