What's the canonical vi setting for Python indentation
Mike Steed
MSteed at altiris.com
Tue Nov 30 18:36:23 EST 1999
> From: Chris WRIGHT [mailto:caw at cs.mu.oz.au]
> Sent: Tuesday, November 30, 1999 4:19 PM
> To: python-list at python.org
> Subject: What's the canonical vi setting for Python indentation
>
>
> I've tried to find out the "OK" indentation settings for
> python with vi,
> and a troll through deja-news found some hints (like don't do indent =
> 4). Yet I seem to also remember some advice to the contrary?? I want
> indentation to be 4 characters, and readable by/ acceptable to emacs
> python-mode, and to pass tabnanny...
I haven't tested acceptability to emacs or tabnanny, but since sane software
assumes a tabstop of 8, I use (in vim) ':set ts=8 sts=4 sw=4'. This makes
tabs feel like four spaces while I'm editing (convenient), but uses actual
tab characters only for groups of 8 spaces.
--
M.
More information about the Python-list
mailing list