Indentation style...
Courageous
jkraska1 at san.rr.com
Mon May 28 11:11:46 EDT 2001
On Mon, 28 May 2001 06:42:08 GMT, bas.vangils at home.nl wrote:
>Thomas Wouters <thomas at xs4all.net> wrote:
> * No, no, no! Tabs are 8 spaces. Eight. Spaces. Always.
I agree with this. Hard tabs should always be eight spaces,
in particular because of the variety of legacy programs which
treat them as 8 by default.
In the vim editor, you can do this in your .vimrc
set softtabstop=4
set et
This makes it so that when YOU type a tab, it goes in as spaces
and only goes to the next 4-space-tabstop. Meanwhile, if you open
a file with hard tabs already in it, you see them as 8.
Another cool trick:
set lcs=<ctrl-v-187>\
set list
This makes the tab character show up as a small >> character
(ANSI 187). Note that <ctrl-v-187> stands for "type ctrl-v followed
by 187".
C//
More information about the Python-list
mailing list