Given a file with an even number of lines, how can one interleave the lines from the second half onto the first half? For example, from this:
a
b
c
1
2
3
To this:
a
1
b
2
c
3
One possible solution would be writing those halves to
separated files and then use the paste utility.
:1,3w a | 4,6w b
:%!paste -d \\n a b
However, I'd like to find a short way of doing it within Vim — using native commands.