Joins copies of one or more lines to the current line.
J{m}{/string}
J{m-k}{/string}
J{m,n}{/string}
m is the number of lines to join string to, beginning with the current line. If m is not specified, it defaults to the current line.
m-k is line m through line k.
m,n is n lines, starting at line m.
/ is a separator. You can use another character if ‘/’ is used in the string to be appended.
string is the bridging character string.
You have the option of including a character string between the joined lines.
If you specify J with no parameters, the line following the current line is copied to the current line, leaving the line copied as it was.
:ED BP ABC |
Current contents of item ABC Join lines 3 and 4 to line 2. New contents of item ABC. |
:ED BP ABC |
Current contents of item ABC. Join line 3 to line 2, with the literal string TEXTSTRG sandwiched between the joined lines. New contents of item ABC |