Using tabs instead of spaces in IDLE?

Chris Gonnerman chris.gonnerman at newcenturycomputers.net
Thu Feb 14 22:17:03 EST 2002


----- Original Message ----- 
From: "Carl Banks" <idot at vt.edu>


> Greg Ewing wrote:
> > Courageous wrote:
> >> 
> >> And while vim indeed does just what I said, when you backspace over
> >> these runs of spaces while in insert mode, it knows how those spaces
> >> where generated and so:
> >> 
> >> "deletes any such spaces inserted through a tab, just as if
> >> it were deleting a single tab."
> > 
> > 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.

Psychic text editing?  :-)

Actually, when backing over a space which is lined up exactly on a 
tab position, vim assumes it must represent a tab; else it is handled
as a "normal" space.






More information about the Python-list mailing list