Indentation style...

Alex Martelli aleaxit at yahoo.com
Mon May 28 11:40:10 EDT 2001


"Courageous" <jkraska1 at san.rr.com> wrote in message
news:gnq4htc5kpmc5q2oe12ui4hsoqgae3gaev at 4ax.com...
    ...
> In the vim editor, you can do this in your .vimrc
>
> set softtabstop=4
> set et

I second (third?) this, and would add:
    set shiftwidth=4
    au BufRead *.py %retab
to let >> / << work nicely too, and clean up any hard
tab that other tools might have put in your otherwise
pristine .py files ... some would balk at the latter...:-)


Alex






More information about the Python-list mailing list