You're viewing a single post. I have much more to say! The main blog page is a good starting point.

Tabs are evil!

At last I may call myself a convert: tabs in Python source code are evil! It takes some basic configuration to The One True Editor though:

setlocal expandtab
setlocal foldmethod=indent
setlocal nofoldenable
setlocal shiftwidth=4
setlocal smarttab
setlocal tabstop=4
" Highlight leading tabs in the source code
match Todo /^\(\s\)*\t\+/

Put the above lines in ~/.vim/ftplugin/python.vim and you’re all set.

Update: Yes, this is PEP 8 style.