Join Lines [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Join Lines
Purpose
Merges the text of two or more lines.
Default Syntax
[n] j
where n is a count that represents the number of lines following the
cursor line to be joined to the cursor line. The default value of n is
1.
Description
This command merges the text of two or more lines by joining words from
succeeding lines to the end of previous lines. HP EDIT merges text in
word blocks by joining as many words after the end of the cursor line as
space permits. The available space for joining text is determined by the
non-blank text on a given line and the right margin boundary of the file,
called the [REV BEG]right margin.[REV END]
Join Process
When you execute the command, HP EDIT joins as many words as possible
from the next line to the current line. When no more space is available
to join words, HP EDIT breaks the line at a word boundary and leaves the
remaining words on the second line. The command does not join words to
the cursor line if there is insufficient space at the end of the line to
permit at least one word from the next line to be joined.
The command joins and left justifies all specified lines to the first
non-blank column of the cursor line. For instance, if you move the
cursor to the first of three consecutive lines that begin on columns 5,
10, and 15 and execute the command, the joined lines now all begin on
column 5.
Joining Several Lines
To join more than two lines of text, you can either execute the command
repeatedly, [REV BEG]enter a count before executing the command to
represent the number of join operations to be performed, or select a
block of text that you want joined.[REV END] If you choose the second
method, do not include the first line of the group (the cursor line) as
part of the count.
Setting The Join Length
You can set the join length by invoking the Set Options command and
changing the Join Length field. The default and maximum value for this
field is 80 for unnumbered and COBOL-numbered files, and 72 for
standard-numbered files. The non-default value you provide for this
field only affects the current session. You can save this new default
for other subsequent sessions, if desired, by using the Save Config File
command. Refer to the Save Config File and Load Config File commands for
information about customizing your editing options.
Procedures
To join two lines:
1. Move the cursor anywhere on the first line.
2. Press the j key. HP EDIT joins as many words from the second line
as possible within the join length boundary.
To join several lines, either:
1. Move the cursor anywhere on the first line of the group of lines
to be joined.
2. Press the j key repeatedly until the last line of the group has
been joined.
or
[REV BEG]
1. Enter a count. This value represents the number of lines you want
to join beginning at the current line. Do not include the current
line in the count.
2. Press the j key. HP EDIT joins the lines within the boundary
specified by the join length.
or
1. Select a block of text.
2. Press the j key. HP EDIT joins all lines specified within the
block.
[REV END]
Examples
To join the following lines:
This example joins
three lines of
unequal length.
1. Move the cursor to a column anywhere on the first line.
2. Press the j key twice. HP EDIT joins the three lines as shown:
This example joins three lines of unequal length.
To join the following lines:
The following lines will be
joined and left adjusted to
the first line.
1. Move the cursor to a column anywhere on the first line.
2. Press the j key twice. HP EDIT joins the three lines as shown:
The following lines will be joined and left
adjusted to the first line.
Related Commands
Join Lines And Justify
MPE/iX 5.0 Documentation