[Tutor] Re: tabs or spaces (the endless debate!)

Paul Tremblay phthenry@earthlink.net
Sat Feb 15 19:21:01 2003


On Sat, Feb 15, 2003 at 04:25:22PM -0500, Derrick 'dman' Hudson wrote:

[snip]
> 
> Guido did :
>     http://www.python.org/peps/pep-0008.html
> 
>     Never mix tabs and spaces.  The most popular way of indenting
>     Python is with spaces only.

This was nice, since I had other questions about naming conventions. 
> 
> | Also, if I do decide on spaces, how do I make vim automatically insert 5
> | spaces, rather than a tab space of 8. (I know this is really a vim
> | question, but I figure that there are bound to be some vim users who
> | know this question cold.)
> 
> All the goodies are here :
>     http://dman.ddts.net/~dman/config_docs/dot-vimrc
> 
> In short:
> 
> augroup Python
>     au!
>     au FileType python set sts=5 sw=5 et ts=8 ai si cin tw=78 fo=croq2 hls
> 
>     au FileType python set comments=b:# 
>     " override C preprocessor indenting
>     au FileType python inoremap # X<C-H>#
> augroup END
> 

Ah, nice! Comments and all.

Thanks everyone for your help. 

-- 

************************
*Paul Tremblay         *
*phthenry@earthlink.net*
************************