On Mon, Sep 22, 2008 at 7:34 AM, Rolf wrote: > > Hmmm... yes. at one point I did. Unfortunately, I had tabstops set to 4, > so, each tab became 4 spaces.... not exactly useful in Python. Disclaimer: I have been infected by the Python brain slug... I use this in my vimrc to get proper Python indentation. I've included the C settings as well for comparison. ---------- autocmd FileType python set tabstop=4|set shiftwidth=4|set et|set sta|set softtabstop=4|set ai " Python autocmd FileType c set tabstop=8| set softtabstop=8| set shiftwidth=8| set noexpandtab " Linux kernel C style --------- And excellent page on Python indentation is here: http://www.secnetix.de/olli/Python/block_indentation.hawk My general workflow is that device driver/embedded code is in C, anything running on a PC is Python. If there is ever a bottleneck in the Python code it gets rewritten in C++ and wrapped with swig and available as a Python module. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist