Folding in vim

Renato Ramonda renato.ramonda at
Tue Jul 5 22:53:55 CEST 2005

Sybren Stuvel ha scritto:
>>If using Vim it would be something like "set softtabstop=4".
> This gives you a mixture of tabs and spaces, which I don't like. I'd
> rather use real tabs for indenting. If you then use another tab width,
> you only see a wider indent, but the rest of the code is okay.

Why not use just spaces? Vim simplifies this immensely:

set tabstop=4
set shiftwidth=4
set expandtab
set smarttab
set autoindent

AFAICT this gives me all spaces, 4 spaces indent, tab inserts spaces and 
backspace over a block of 4 spaces deletes all of them (just like 
deleting a tab).

Usi Fedora? Fai un salto da noi:

More information about the Python-list mailing list