Insertion Commands
The INSERT command places one or more new lines after the pointed data line. If the pointed line is a null line at the beginning of the file, the new line(s) are added before any data already in the file. The new line(s) become the current pointed data line. Available commands are:
:I
Insert one line following the pointed line.
:I {string}
Insert {string} as the new line below the pointed line. {string} is not checked for tab characters nor field aligned.
:IC
Insert new lines below the pointed line until (when at the beginning of the inserted line) a null entry is made.
:IC {string}
Insert {string} as the new line below the pointed line and continue to allow new lines to be inserted until (when at the beginning of the inserted line) a null entry is made.
:I{n}
Insert {n} lines below the pointed line or until (when at the beginning of the inserted line) a null entry is made.
Note the following:
After entering the :I command, the data lines on the screen above and including the pointed line are moved up, with the top data line being moved to the scratch area. A blank line is then present at the current pointed line, ready for the new data to be entered.
If a null entry is made, the :I command is ignored, otherwise the new data is treated as any other input line.
If a colon is entered as the first character on an inserted line, it is kept and not treated as a command sequence. It is not necessary to enter two colons when inserting lines to have a colon become part of the data line.
See Also: Example Commands, SUNEDIT Commands, Line Edit Mode, SUNEDIT
![]() |