previous next top contents index framed top this page unframed
Table 6–1 shows how to enter insert mode from command mode. Type <ecm> to return from insert mode to command mode.
Table 6–1. Commands to Enter Insert Mode
| Command | Action |
|---|---|
| I | enter insert mode |
| .I | insert a line above current line, enter insert mode |
| n.I | same as .I, except indent new line n columns |
Table 6–2. Effect of Special Keys in Insert Mode
| Command | Action |
|---|---|
| <bs> | Move cursor left 1 column |
| <del> | Delete the character to the left of the cursor, then move cursor left 1 column, except if at left margin, join current line to end of previous line (like -QJ command) |
| <tab> | Insert tabs to next tab stop |
| <lf> | Move cursor down 1 row |
| <eol> | Break the line at the cursor into two lines, and put the cursor at the start of the second line (like QB command) |
Table 6–3. Commands to Insert Characters or Lines
| Command | Insert: |
|---|---|
| nIL | n lines above current line, cursor to first inserted line (n is required) |
| QIL | lines above current line to end of window, cursor to first inserted line |
| nICx | n x's (n is required) |
| QICx | x's to right margin |
For example, to insert eight blanks at the cursor, type 8IC<sp>.
6.4. Inserting the Contents of a Buffer or File
The 1IB command
prompts for the name of
a buffer and inserts the contents
of the specified buffer in the current
buffer above the current line.
The 1IF command
prompts for the name of a
file and inserts the contents of the specified file in the current
buffer above the current line.
See Table 6–4.
Table 6–4. Commands to Insert Buffers or Files
| Command | Insert: |
|---|---|
| 1IB | a buffer (name is asked) |
| 1IF | a file (name is asked) |
MAINEDIT displays the end-of-page character
on your screen with a page mark,
as shown in Figure 1–2 of the MAINEDIT User's Guide.
To delete the end-of-page character,
place the cursor anywhere on the line containing the
page mark, and issue the DL (Delete Line) command.
6.6. Inserting Characters by Code
Associated with each character (printing and non-printing) is a
unique nonnegative integer, called a character code. MAINED
provides a command for inserting a character by specifying its
character code, thereby allowing you to insert a non-printing
character such as a bell or escape.
The actual character code set used is dependent on your host operating system. For example, the character code for a blank on an ASCII host is 32, while that for a blank on an EBCDIC host is 64.
To insert a character by its code, type a single quote ('). MAINED prompts for the numeric character code in the message line at the top of the screen. Type the value of the character you wish to insert, followed by <eol>. The value can be entered in any of four radices, as shown in Table 6–5. For example, to insert an ASCII <del> character, type a single quote ('), and respond to the prompt in one of the following ways:
Char code: 127<eol> (decimal)
Char code: B1111111<eol> (binary)
Char code: O177<eol> (octal)
Char code: H7F<eol> (hexadecimal)
Table 6–5. The Four Radices Understood by the ' Command
| Format | Description |
|---|---|
| n... | decimal digits n... |
| Bn... | binary digits n... |
| On... | octal digits n... |
| Hn... | hexadecimal digits n... |