Is something wrong in ":g-2-g/3/" or is the recursion in the global just missing? I can not understand a reason for the error:
E147: Cannot do :global recursive
How can I get a recursive global search in VIM?
[Neil's initial Suggestion with the operator \| ]
g/1.*2\|2.*1/
A disadvantage is that the combinations expand with n numbers. For three numbers, the number of combinations is 3! (=6) that is
g/1.*2.*3\|2.*1.*3\|3.*1.*2\|1.*3.*2\|2.*3.*1\|3.*2.*1/
For n numbers, the number of combinations is n!.
[Solution with the operator \&]
Brian Carper and Neil Butterworth figured out the solution. Great thanks for them!
g/.*1\&.*2\&.*3/
It is for the whole line:
g/.*1\&.*2\&.*3\&.*/