Misuse of <tab>

Robin Munn rmunn at pobox.com
Tue Aug 12 16:43:03 EDT 2003


Keith Jones <kmj9907 at cs.rit.edu> wrote:
> On Wed, 30 Jul 2003 17:25:05 +0000, max wrote:
> 
>> The problem with spaces is that you need to do 5 times the work of a tab
>> to get decent-looking indentation :).
> 
> Not if you have a good editor.. Use vim or emacs. In vim, try :h sts (I
> think, or :h softtabstop) ...it would suck to have to type
><space><space><space><space> all the time, but you don't. :)

Don't forget the "smarttab" option (:h smarttab). My .vimrc looks like:

set shiftwidth=4
set expandtab
set smarttab

OK, if you want to be precise about it, *part* of my .vimrc looks like
the above. :-)

-- 
Robin Munn <rmunn at pobox.com> | http://www.rmunn.com/ | PGP key 0x6AFB6838
-----------------------------+-----------------------+----------------------
"Remember, when it comes to commercial TV, the program is not the product.
YOU are the product, and the advertiser is the customer." - Mark W. Schumann




More information about the Python-list mailing list