tis 2010-06-29 klockan 16:58 +0800 skrev Weibin Yao:
> I noticed the
> guideline(http://wiki.squid-cache.org/Squid2CodingGuidelines) is that:
> Code MUST be formatted with GNU indent version 1.9.1 and these exact
> options indent -br -ce -i4 -ci4 -l80 -nlp -npcs -npsl -d0 -sc -di0 -psl
>
> How could I to convert this indent directives to the type of vim?
Normal C indent mode works pretty decent for me, with just
set sw=4
to get the indentation level right.
It's not critical you get this entirely correct. As long as the code you
produce is readable. The above GNU indent rule is mostly for committing
code to the main CVS repository and is enforced there.
Regards
Henrik
Received on Tue Jun 29 2010 - 14:14:57 MDT
This archive was generated by hypermail 2.2.0 : Wed Jun 30 2010 - 12:00:08 MDT