I have a column of words:
text
text
text
text
text
and I am searching for a vim command that will produce:
text text text text text
A macro will work of course, but is there something simpler for this purpose?
|
I have a column of words:
and I am searching for a vim command that will produce:
A macro will work of course, but is there something simpler for this purpose? |
|||
|
|
A macro would work, yes, but it's probably not the most efficient method. How about a simple substitution:
Or simply a "join":
edit Not knowing what your file looks like, it's difficult to propose a definitive answer. The substitution assumes that the buffer only contains the lines in your example (the The
|
|||||
|