I'd like to join a lot (~1000) of lines, but only every odd with the next one. By hand I could do
Jj
500 times and have it done. However, how can I execute these two statements 500 times in one single command? Typing
500Jj
will join the next 500 lines and then moving down one line.
Example:
I have:
a
b
c
d
e
f
g
h
I want:
a b
c d
e f
g h
Edit: I tried mapping:
:map X Jj
500X
but apparently I should read the mapping docs again. Doesn't work.
