Tab wars revisited (was Re: Python indentation)

Chris Share usenet at caesium.me.uk
Fri Jul 9 03:00:34 EDT 2004


On Wed, 07 Jul 2004 18:36:05 -0400, Peter Hansen <peter at engcorp.com> wrote:
> I'm actually pretty inept with vi (or vim), to the point that I don't
> actually know how to configure it for use with Python.

FYI, it's pretty simple...

I use vim for writing python in, with the following options:
:set et
:set tabstop=4

The first one tells it to replace tabs by spaces, the second that a tab
should be 4 characters, which I find to be a comfortable indenting level
- 2 spaces doesn't look clear enough, and 8 spaces gets pretty annoying
with more than one or two indents deep.

chris



More information about the Python-list mailing list