Deprecate tabs for indenting (was Re: Indenting with tabs vs spaces)

beej at piratehaven.org beej at piratehaven.org
Wed Dec 5 19:39:27 EST 2001


In article <haks0u4ct24nt5hcett906lc0cc1n50ulk at 4ax.com>,
Courageous  <jkraska at san.rr.com> wrote:
>For vim users:
>set et

This is cool if you always want your tabs expanded, but expanded tabs
suck (IMHO) in, say, C code.  So you can do this instead in your
~/.vimrc:

au BufNewFile,BufRead *.py set et

This sets an autocommand for files that end in ".py" to "set et".  Only
works if the file extension is ".py" obviously, but maybe there's
another way around that.

-Beej




More information about the Python-list mailing list