Re: [squid-users] what's the configuration with vim when developing squid 2.7?

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Tue, 29 Jun 2010 16:14:51 +0200

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