Now my folded lines look like this:
+-- 123 lines: doSomeStuff();--------------------------
+-- 345 lines: doSomeOtherStuff();---------------------
I would like to remove everything before the actual contents of a line (+– xxx lines:), make it more like Notepad++/Eclipse visuals way — now it’s too hard to read, and I actually don’t care how much lines I have under a certain fold 🙂 So are there any commands for adjusting the format of folded lines?
Yes,
foldtextfunction which romainl already mentioned returns a string to be displayed in a closed fold (in other words, that – what you see).You can modify the fold function to show whatever you find interesting. For example,
will return something similar to this
meaning 6 lines are in the fold (including the one with the closing fold marker)