On Wed, May 22, 2002 at 05:50:10PM +0200, Luca - De Whiskey's - De Vitis wrote: | On Wed, May 22, 2002 at 08:38:26AM -0500, dman wrote: | > | --- cut --- | > | augroup Python | > | au! | > | autocmd BufRead *.py set expandtab softtabstop=4 shiftwidth=4 tabstop=4 | > | augroup END | > | --- /cut --- | | > It will work, but I disagree with changing the 'tabstop' variable. | > | > Try catting your code directly to a line printer. It will use 8 | > spaces per tab, and that will mess up things. Another problem is the | | No, it will not. This configuration actually uses space (4 in this case) | instead of a single tab. It only gives the user the feeling he is using tab, | while he is not.
Right. It must have been too early in the morning ... I meant if you use real tab characters and just fiddle with tabstop you are bound to cause problems (which is why I always leave 'ts' set to 8). | Try the :help for 'expandtab' 'softtabstop'. They are wonderful options! Just don't set 'et' for Makefiles! (also check out the 'list' and 'listchars' options -- it really helps to actually _see_ the tab characters in a different way than space characters) -D -- A perverse man stirs up dissension, and a gossip separates close friends. Proverbs 16:28 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg
pgpT62v5JeTV9.pgp
Description: PGP signature