I noticed that fold texts can show useful information. They usually show something like
+-- 5 lines: <div id="header-inner">--------------------------------------------
Is it possible to change the text in those lines? I noticed that something is possible in foldexpr
but would it be possible to completely redesign folds?
e.g.
+ <div id="header-inner"> : "possible comment from line above" : row 27 : length 5
thank you
You can also inspect the folding config from Steve Losh’s bitbucket repo page about vim.
It has very beautiful appearance, which is also very organized!
To see what it is like, you might ckeck it out in this youtuebe video.
There are a few things I don't understand from your question, such as which foldmethod you are using, or what the number of "rows" refers to, but here's a custom foldtext function that should do roughly what you want:
Explanation:
Hope this helps. It should be easily tailored to your needs.