> I have (again ;) a config-file which consists of lines with elements
> like this (example)
> Common to all elements is the start of the items with either 'a-' or
> 'b-'. Either there are pairsm wich differ only in "a-" or "b-" or
> there is only one item of such a pair.
do the job the way you want?
> Is it possible to sort the line in a way that allways corresponding
> item are paired together like in the above example?
The :sort command allows you to specify an offset pattern for
where it begins considering the search. In the above, it's just
a dash, so it finds the first dash (after the "a-" or "b-") and
then sorts beginning at the next character.
For the broader multi-line case, it's often easiest to use the
"decorate, sort, undecorate" pattern, where you mash your grouped
lines together with a delimiter, sort the results, and then
un-mash the lines based on your delimiter.
> Sorry for my confusing "english"... ;)
If only my non-existent German (which I guess is your native
language given the .de TLD of your email address) was remotely as
good as your English. :)