I will give an example where N = 3
The input looks like this:
A
B
C
D
E
F
G
H
I
The output must look like this:
A D G
B E H
C F I
(the input might have 12 lines instead of 9 though. Or 30, or 300..)
But most of the time I need to join, in the selected text, the top half with the bottom half. In other words, I select N lines and I need to join the first N/2 lines with the last N/2 lines. I will give an example:
The input looks like this:
A
B
C
D
1
2
3
4
The output must look like this:
A 1
B 2
C 3
D 4
(In this case the value of N was 8)
Is it possible to do something like that using regex or macros?
Note, there is a similar question here, but that's completely distinct to this one though