Append (a)

append after current line

Syntax:

[line]a[text]

[line]ad

Description:

The a form of this command turns on option newline (n+) and opens up a newline after the current 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 after a set of matched lines. The blank between the a and text is required.

The ad form appends the last deleted line (or range of lines) from the delete buffer. Option newline is not affected.

The append 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.