I - Insert text before line.




i Hello there!


I inserts text input into the current buffer. If you specify an address (as in 3I), FRED inserts the input before that line. Otherwise, it inserts the input before the current line.

There are two ways to begin the input text:

Usually, you must indicate the end of your input text by entering a \F character. However, when the O-I\F option is in effect and the input text immediately follows the I, you don't need \F. For example, you might say

i Insert text here.

In this case, FRED assumes that the new-line at the end of the input line is the last character to be inserted; in other words, a \F is assumed to follow the end of the line.

The I. command inserts a single line of text. For example,

i.Hello there!

inserts Hello there! before the current line. No \F is needed.

If the O+I. option is in effect, you can end input with a line consisting only of a dot followed by carriage return. For example,

This adds one line.

inserts the given line. Thus with O+I. you can end your input with either \F or with the dot.

When you end your input, FRED sets the current line pointer "." to the line you just typed (the last line of input). If you didn't input any text, FRED sets "." to the line before the addressed line.

Copyright © 1998, Thinkage Ltd.