The task I have in mind is I have grown files containing multiline definitions. Currently I'm working on a file containing acronyms for latex - many entries like this, but most much more complex:
\DeclareAcronym{AUC}{
short = {AUC},
long = {Area Under Curve},
extra = {long text with \many{macros} and $math$}}
The problem is by joining more definitions the entries get mixed up and harder to deal with. I would prefer them sorted.
I know vim has great functionality sorting lines - I could just join everything into one line, but then I would need to rearrange it afterwards. I suppose I could come up with something for the trivial entries but the complex extra blocks (and other non shown) give me a hard time.
Is there any functionality organizing such blocks in vim?