Using tabs instead of spaces in IDLE?

Courageous jkraska at san.rr.com
Thu Feb 14 23:10:03 EST 2002


>> This sounds ingenious, but what happens when you save the
>> file and load it back? Does it remember this information
>> somehow, or does it get lost?
>
>The editor remembers this information by saving it in the text file
>itself.

I believe that you're answering a different question than what
he asked. The ability of vim to "backspace" over a current
line and treat those spaces entered as if it were a single
tab is possible on the current *line* being introduced in insert
mode only.

Still, this mode works fairly well, and is about as compatible-
with-Python as you can get. For those who sometimes have to
switch back and forth between modes in different files, they
might like this feature:

## vim: et ts=8 sts=4

Vim reads the "vim:" command in your file and interprets it.
You typically put this at the head of your file, somewhere
near where you do the $Id: $ thingy for CVS.

C//




More information about the Python-list mailing list