Suppose I have a bunch of folds for more than one line each. How to make shuffle them as folds not lines?
In case of lines it can be done by external shuf
or any other command (see https://stackoverflow.com/a/17643450/359866 for example).
So the question is for more general case of multiline folds.
P.S. Example.
Unfolded:
fold1
subfold text1
fold2
subfold text2
fold3
subfold text3
Folded:
fold1...
fold2...
fold3...
After shuffle for example
fold2
subfold text2
fold1
subfold text1
fold3
subfold text3
awk
which isn't what I want. I think that in that sense it much more reliable implementation is vimscript folding implementation.