HP 3000 Manuals

Replace Line [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Replace Line 

Purpose 

Enables a user to delete and insert a new line.

Default Syntax 

[n] R

where n is a count that represents the number of lines to delete before
entering Text Entry mode.  The default value of n is 1.

Description 

This command combines the functions of the Delete Line and Insert Line
commands by deleting the current line or several lines beginning at the
current line and replacing them with a blank line, enabling you to add
text in Text Entry mode.

Procedure 

To replace a line: 

   1.  Move the cursor anywhere on the line to be replaced.

   2.  Press the R key.  HP EDIT deletes the line and replaces it with a
       new blank line with the cursor positioned at the first column.

   3.  Type the replacement text.  You can add subsequent lines by
       pressing Return without preceding it with the / key.

   4.  Press / and Return when you have finished replacing text to return
       to Command mode.
[REV BEG]

To replace a block of lines: 

   1.  Select a block of text.

   2.  Press the r key.  HP EDIT deletes the block of characters and
       places HP EDIT in Text Entry mode.

   3.  Insert replacement text.  HP EDIT shifts the existing text to the
       right.

   4.  Press / and Return when you have finished replacing text to return
       to Command mode.
[REV END]

Related Commands 

       Append Line
       Append To Character
       Append To End Of Line
       Append To Word
       Delete Character
       Delete Line
       Delete Pattern
       Delete Word
       Insert Character
       Insert Lines
       Replace Character
       Replace Word



MPE/iX 5.0 Documentation