All ED commands have key sequences and many are available through menus. You can enter ED commands in either of the following ways:
In addition, you can use the mouse to perform some commands, such as those that control cursor movement.
You can work on files in ED with the following two command modes:
Commands are executed as soon as typed. ED opens in immediate mode. |
|
In immediate mode, ED executes commands right away. Specify an immediate command by pressing a single key or Ctrl+key combination or by using the mouse. All immediate commands have corresponding extended versions.
Immediate commands control the following:
The cursor can be positioned anywhere in text by moving the pointer to the desired spot an clicking the selection button. To move the cursor with the keyboard, use the arrow keys, Tab, and Ctrl+key combinations.
In ED, the Tab key only moves the cursor. It does not insert Tab characters or spaces in a line. |
Move the cursor one position in any direction by pressing the appropriate arrow key. If the cursor is on the right edge of the screen, ED scrolls the text to the left to display the rest of the line. ED scrolls the text vertically one line at a time and horizontally ten characters at a time. You cannot move the cursor beyond the left edge of the line. If you try to move the cursor beyond the top or bottom of the file, ED displays a Top of File or Bottom of File message.
Additional key combinations that control cursor movement are:
If your file has more lines than can fit in the ED window, you can scroll through the file vertically. Scroll one line at a time by pressing the up or down cursor key to move in the corresponding direction. Move the text in jumps by pressing:
These commands do not move the cursor position in the window; they redraw the text in the window with the new line at the cursor position.
If something disturbs your screen, such as an alert from another program appearing in the ED window or message remarks in the status line, press:
Any characters typed in immediate mode are inserted at the current cursor position and the cursor is shifted to the right. Any characters to the right of the cursor are shifted to make room for new text. If the lines is wider than the width of the window, the window scrolls to the right to show what you are typing. If you move the cursor beyond the end of the line, ED inserts spaces between the end of the line and any new characters inserted.
There is maximum limit of 255 characters in a line. If you add more characters, ED displays a Line Too Long message.
To split the current line at the cursor, press Return. Any text to the left of the cursor remains on the original line. All text under and to the right of the cursor moves down onto a new line. Pressing Return at the end of the line creates a new blank line.
ED has no overwrite mode. To replace a word or line, you must delete the existing words and insert new information with the following keys and key combinations:
When text is deleted, any characters remaining on the line shift to the left and any text beyond the right edge of the screen becomes visible.