This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Vim format in gcc source?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]