What's the canonical vi setting for Python indentation
Sean Blakey
sblakey at home.com
Tue Nov 30 18:46:10 EST 1999
I don't know about canonical, but I have the following in my .vimrc
set expandtab "Turn's tabs into spaces
set hardtabs=4 "Make tabs 4 spaces wide
set tabstop=4
set shiftwidth=4 "For use with << and >>
On Wed, 1 Dec 1999, Chris WRIGHT wrote:
> 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 think that this should go in the faq...(Couldn't find it from
> www.python.org search)
>
>
> cheers
> and thanks
>
> chris wright
>
--
http://students.washington.edu/sblakey/
(206)297-7123
Public PGP key available at http://students.washington.edu/sblakey/public.asc
More information about the Python-list
mailing list