HP 3000 Manuals

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


HP EDIT Reference Manual

Insert Line 

Purpose 

Enables a user to add text above the current line.

Default Syntax 

I

Description 

This command places the editor in Text Entry mode and enables you to add
text starting at the beginning of a new line.  When you execute this
command, HP EDIT moves the cursor to the first column of a new line above
the current line, enabling you to add unlimited text.  You can add
subsequent lines by pressing Return without preceding it with the / key.
When you have finished adding text, pressing / and Return returns you to
Command mode.

When in Text Entry mode, you can use the Insert Line terminal key to
perform a similar function as this command.

Procedure 

To add a new text line: 

   1.  Move the cursor to a column anywhere on the line above which you
       want to add text.

   2.  Press the I key.  If the Auto indent option is off, HP EDIT moves
       the cursor to the first column of the new line.  If the Auto
       indent option is on, HP EDIT moves the cursor to a column
       corresponding to the first non-blank character of the previous
       line.  In either case, the editor is now in Text Entry mode.
       Refer to the Set Options command for more information about the
       Auto indent option.

   3.  Type the additional text.  To add more than one line of text,
       press Return at the end of each line.  HP EDIT moves the cursor to
       the appropriate column of the next line.

   4.  Press / and Return when you have finished adding text to return to
       Command mode.

Example 

To add text before this line: 

           Text will be added above this line.

   1.  Move the cursor to a column anywhere on the line and press the I 
       key.  HP EDIT moves the cursor to the position shown:

            _
            Text will be added above this line.

   2.  Type This new text precedes the next line.  and press / and Return 
       to return to Command mode.  HP EDIT adds the new text as shown:

            This new text precedes the next line.
            Text will be added above this line.

Related Commands 

       Append Line
       Append To Character
       Append To End Of Line
       Append To Word
       Insert Character
       Replace Character
       Replace Line
       Replace Word



MPE/iX 5.0 Documentation