Tammer's has some nice things in it that I might crib, thanks for the link
But yeah, as a vim user I agree. Pathogen helps a lot.
You can also just go to: http://news.ycombinator.com/saved?id=jholman
As mentioned in the paste:
Please note that this is hacked Python SimpleFold. I don't know how much
of the original plugin the code share (as I hacked it loooong ago). Do
remember that it doesn't always work (but always do with my company's
coding conventiens; hear I have no intent to make it work for others).
Also, there is probably some useless crap laying around.
Edit: Judging by my English, I'm really tired. I leave it as-is for posterity and because it's the way it is in the paste.
Using Chrome 14.0.835.8 dev, Mac OS X 10.7
On the whole I really like significant white space (despite my suspicions before taking up the language). With a brace-blocked language like C, indentation can fool you into thinking there's a block when there really isn't.
This is very unlikely to happen in Python. A section of code that looks like a block due to indentation is virtually certain to be a single coherent block. I love that.
matchit generally seems to do a good job at identifying beginning/end pairs in a variety of languages.