Folding in vim

Sybren Stuvel sybrenUSE at YOURthirdtower.com.imagination
Tue Jul 5 15:36:20 EDT 2005


Benji York enlightened us with:
> Your editor probably supports a "backspace unindents" option.

Yes, it does. I'm using vim.

> 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.

When using a tab/space mixture, with eight spaces being one tab, and
an indent of four spaces, things go wrong when the tab size is
anything but eight spaces.

My solution works for all tab sizes, the other solution only works for
tabs of eight spaces. This is why in my opinion it's better to just
use tabs.

Sybren
-- 
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa



More information about the Python-list mailing list