You're viewing a single post. I have much more to say! The main blog page is a good starting point.
Tuesday, September 6, 2005 ★ 09:34 ★ Category Programming
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.
Random photo from Berlin (July, 2005)
Wouter Bolsterlee, also known as uws, a postmodern geek living in the Netherlands. Read more about me…
Unless stated otherwise, all material on this site is available under a Creative Commons Share-Alike license.