4 ms·
Python is the last language that needs a vim plugin to do folding better - `foldmethod indent` exists in standard Vim, and Python enforces indentation by making
by ThrustVectoring 8y ago
Python is the last language that needs a vim plugin to do folding better - `foldmethod indent` exists in standard Vim, and Python enforces indentation by making it syntactically relevant.
- joshuamorton 8y agoThis does a couple of arguably nice things like folding decorators and surrounding whitespace, so that @decorator def function(): pass @decorator def other_f(): pass becomes def function(): def other_f(): Which I can see the utility of, but at that point it's almost worth just having an outline feature instead of code folding.