[TxMt] Puthon folding idea (not really mine)

Alexey Blinov nilcolor at gmail.com
Tue Dec 11 08:38:28 UTC 2007


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20071211/d2ab6645/attachment.html>


More information about the textmate mailing list