Previous Next Chapter

Movement Menu

The following commands move the cursor around the screen:

Top

Esc,T
Shift+up arrow

Top of the file; first line of the file is brought to the top of the window.

Bottom

Esc,B
Shift+dow n arrow

Bottom of the file; last line of the file is brought to the bottom of the window.

Next Page

Esc,P,D
Ctrl+D

Go to next page.

Previous Page

Esc,P,U
Ctrl+U

Go to previous page.

Go To Line...

Esc,M...

Move the cursor to the specified line. Enter the line number on the status line and press Return. The line specified is brought to the top of the window. If no number is given, the cursor goes to the top of the window.

Search Menu

The following commands let you search through the file for specific instances of text. You can substitute one pattern of text with another (search and replace) and have ED request confirmation of (query) each replace. If the specified text is not found or there are no more instances of the text, the message Search failed is displayed. When using the Find and Replace menu commands, ED prompts for the text strings. Enter the text without delimiters. When using extended mode, include delimited strings with the command.

Find...
Find Next

Esc,F...

Finds the next occurrence of the specified string of text. The search starts one character beyond the current cursor position and continues forward through the file. If the string is found, the cursor moves to the start of the located string. The search is case-sensitive, unless the UC command is used. Find Next repeats the command.

Reverse
Find...
Reverse Find Next

Esc,B,F...

Searches backwards through the file for the specified string. This command finds the last occurrence of the string before the current cursor position. The search continues through to the beginning of the file. Reverse Find Next repeats the command.

Replace...

Esc,E...

Exchanges one occurrence of text with another.

In extended mode, enter the strings enclosed by three delimiters. For example, to replace the word "to" with "too", enter "to"too". Specify empty strings by typing two delimiters with nothing between them. If the first string is empty. ED inserts the second string at the current cursor position. If the second string is empty, ED searches for the next occurrence of the first string and then deletes it. Note that ED ignores margin settings when exchanging text.

Global Replace...

Esc,R,P,E...

Exchanges all occurrences of text.

Query-Replace...

Esc,E,Q...

Searches for the text to be exchanged and requests verification by displaying Exchange?. Enter Y to exchange or another other key to abort.

Global Query-Replace...

Esc,R,P,E,Q...

Searches for all occurrences of the text to be exchanged and requests verification for each. Enter Y to exchange or any other key to abort.

Settings Menu

The following commands are used for setting up your ED environment:

Set FN Key...

Esc,S,F...

Defines the function keys and other programmable keys. Defining function key and Ctrl+key commands is similar to defining menu items. See page 12-14 for instructions for defining function keys and a example of the Set FN Key command.

Show FN Key...

Esc,D,F <key>

Displays the setting for the function key specified by <key>. Enter a space and a key slot number for <key>.

Reset Keys

Esc,R,K

Resets the key definitions to the default. See page 12-15 for a table of special key mappings.

Right Margin...

Esc,R,K...

Sets the right margin. To specify the right margin, use the SR command followed by a number indicating the column position.

Left Margin...

Esc,S,L...

Sets the left margin. To specify the left margin, use the SL command followed by a number indicating the column position. The left margin should not be set beyond the right edge of the screen.

Ignore Case

Esc,U,C

Specifies a case-insensitive search. UC instructs all subsequent searches not to make any distinction between upper and lower case text. To make searches case-sensitive again, use the LC command.

Case Sensitive

Esc,L,C

Specifies a case-sensitive search.

Top Previous Next Chapter