HP 3000 Manuals

Shift End Of Line Right [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Shift End Of Line Right 

Purpose 

Shifts a selected portion of text on a line to the right.

Default Syntax 

[n] ESC >

where n is a count that represents the number of lines to shift to the
right.  The default value of n is 1.

Description 

This command shifts a portion of text on a line or lines a predetermined
number of columns to the right.

Shift Count 

The number of columns shifted is determined by the position of the cursor
when you execute the command as well as the Shift Count variable, which
has a default value of 1.  You can alter this variable by executing the
Set Options command and changing the value of the Shift Count field.  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.

Requirements 

In order for this command to function properly, the number of blank
columns at the end of the line must be equal to or greater than the shift
count variable.  For example, the command has no effect when invoked if
the text of the line to be shifted ends in the last column.

Procedures 

To shift a portion of one line one column to the right: 

   1.  Move the cursor to the character column where you want to shift
       the remaining text on the line to the right.

   2.  Press ESC, then press the > key.  HP EDIT shifts all text from the
       cursor position one column to the right.  All text to the left of
       the cursor remains in its original position.

To shift portions of more than one line to the right: 

   1.  Move the cursor to the character column where you want to shift
       the remaining text on the lines to the right.
       [REV BEG]

   2.  Either specify a count or select a block.  This value represents
       the number of lines you want to shift starting at the current
       line.[REV END]

   3.  Press ESC, then press the > key.  HP EDIT shifts all text from the
       cursor position one column to the right for each line.  All text
       to the left of the cursor remains in its original position for
       each line.

To shift a portion of a line more than one column to the right: 

   1.  Execute the Set Options (O) command.

   2.  Press the s key to modify the Shift Count field.

   3.  Enter the desired numeric value representing the number of columns
       to shift and press Return.

   4.  Press Return to return to your editing session.

   5.  Move the cursor to the character column where you want to shift
       the remaining text on the line to the right.

   6.  Press ESC, then press the > key.  HP EDIT shifts all text starting
       at the cursor position the specified number of columns to the
       right.  All text to the left of the cursor remains in its original
       position.

            or 

   7.  Move the cursor to the character column where you want to shift
       the remaining text on the line to the right.

   8.  Press ESC and the > key repeatedly until the text shifts to the
       desired location.

Example 

To shift the following line beginning at the word WILL: 

        The end of this line will shift to the right.

   1.  Move the cursor to the position shown above.

   2.  Press ESC and the > key four times.  HP EDIT shifts the right
       portion of the line as shown:

            The end of this line _   will shift to the right.

Related Commands 

       Shift End Of Line Left
       Shift Line Left
       Shift Line Right



MPE/iX 5.0 Documentation