Insert (i)

insert before current line

Syntax:

[line]i [text]

[line]id

Description:

The first form of this command turns on option newline (n+) and opens up a new line before the current (or specified) line. If text is specified then that text will be placed at the start of the newly opened line. This form is often used within a Global (g) command to append a string before a set of matched lines. The blank between the i and text is required.

The second form (id) inserts the last deleted line (or range of lines) from the delete buffer before the current (or specified) line. Option newline is not affected.

The Insert command must be the last command on a line.

Current line:

Set to the address of the new line opened up.

Condition register:

Not affected.