help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] About indentation in files


From: nico
Subject: Re: [Help-smalltalk] About indentation in files
Date: Thu, 20 Nov 2008 13:32:06 +0100

Le jeudi 20 novembre 2008 à 12:45 +0100, Paolo Bonzini a écrit :
> nico wrote:
> > Hi,
> > 
> > I'm just wondering why in almost all files in gst methods are not
> > indented with a tab but with 4 spaces, while the body of the method
is
> > indented with a tab.
> > 
> > I was surprised at first because my vim displays all tabs as 4
spaces
> > instead of 8, so didn't see any indentation!
> 
> The GNU coding standards, again, mandate that tabs be always 8 spaces.
> That's the default on most machines, so it's the right thing to do.
I'm
> sure you can configure vim to have 8-space tabs for *.st files.

Yes, I just did it.

> 
> On the other hand, 8 spaces indentation just looks too wide to me for
> Smalltalk (I'm slowly getting used to it in C).  So, I'm using 4
spaces
> as in C code, but doing that with combinations of tabs and spaces.
> Emacs can automatically tabify lines, and the Smalltalk mode for Emacs
> produces the right indentation.

Does anyone know how to do it with vim too?


Nico

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée


reply via email to

[Prev in Thread] Current Thread [Next in Thread]