Timeline for Is it possible to fold/unfold only one function
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 24, 2020 at 14:01 | comment | added | Yves | @D.BenKnoble Put the cursor into a function, and fold it. That's what I need. | |
Aug 24, 2020 at 13:19 | comment | added | D. Ben Knoble♦ | If you fold the function the cursor is on, you can’t see it’s body—is that what you want? It’s unclear to me. | |
Aug 24, 2020 at 8:29 | comment | added | Matt |
@MaximKim Ah, my bad. fdm=syntax is not set by default. That's my private setting.
|
|
Aug 24, 2020 at 8:15 | comment | added | Maxim Kim | @Matt I doubt it is set by default. At least in my vim default is manual | |
Aug 24, 2020 at 8:09 | vote | accept | Yves | ||
Aug 24, 2020 at 7:53 | comment | added | Matt |
The first thing you need to explain is what's wrong with the defaults? I.e. foldmethod=syntax which is set by standard ftplugin ?
|
|
Aug 24, 2020 at 7:47 | answer | added | Maxim Kim | timeline score: 2 | |
Aug 24, 2020 at 7:29 | comment | added | Yves | @ChristianBrabandt any doc or link? | |
Aug 24, 2020 at 7:27 | comment | added | Christian Brabandt | possible using a custom foldexpression. | |
Aug 24, 2020 at 7:21 | history | asked | Yves | CC BY-SA 4.0 |