Oh! And BTW there a good idea about naming folding... i.e.
# Super fold #{{{
...
# }}}
folds to
# Super fold...
IMO its nice. Isn't it?
Hi!
I like a code folding but simce i write Python in TM - code folding doesn't work right... Sometimes its ok but some - weird.
So just stop fold code. Its fine but... Some time ago i read one article about Django and find some interesting idea in that article - code folding markers for vim.
Here is a short description:
we need to add new folding rule to fold code based on that pair of markers
#{{{
def test
...
#}}}
add regexp for folding and some macros/snippets doesn't hard (i hope ;) and we will have working solution for Python (or any other lang) right now. I mean in 1.5+ version ;-)
Link to full story about folding in vim: http://www.amitu.com/blog/2007/july/vim-python-code-folding-and-my-vimrc/
Any ideas? I can't do it myself yet but i hope someone will...
Alexey