3 ms·
Does anyone else use code folding plugins for vim? If you have something good for this, please share, since all the popular plugins are pretty buggy (they fold
by IgorPartola 15y ago
Does anyone else use code folding plugins for vim? If you have something good for this, please share, since all the popular plugins are pretty buggy (they fold functions withing functions, and sometimes just white space).
- patrickod 15y agoI've just been using vim's built in folding with indentation as the fold method. Thus far I have complaints; it seems to work as I want it.
- igorgue 15y agoJust fold by indent or syntax, if your code isn't already indented right, you're doing it wrong :-)
- pyre 15y agoSome people don't want if-else, while or for blocks folded, which will happen if you just fold on indent with considering syntax.
- nakkiel 15y agohttp://paste.pocoo.org/show/449029/ http://paste.pocoo.org/show/449029/ 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.