Editing Files


EDT was, for many years, Digital's default editor. Although it is still available, it is no longer supported. EDT operates in three modes:

Most users will only use keypad mode (which is the interactive screen editing window) and line mode (the mode you're in when you start up EDT).

Starting EDT

EDT is invoked by typing:

$ EDT filename
This puts you into line mode. To interactively edit the text, you want to be in keypad mode. The table below lists the same commands available in line mode; these commands can be abbreviated to only their first letter.

Table 4.5: EDT Line Mode Commands

To switch modes, type c (for "change") at the asterisk prompt, for example:


Basic Editing

Once you're in the keypad mode, you can move through the file using the arrow keys. After modifying your file, press - to get back into line mode. If you want to save changes and quit, type exit at the asterisk prompt. If you want to ignore the changes, type quit.

In keypad mode, most commonly-used commands are invoked by pressing one or more keys on the numeric keypad. Many functions are invoked by first pressing the key, (which is defined as the key on VT100-type terminals). Figure 4.7 shows the editing functions that are mapped to a VT100 numeric keypad. The function at the top of the key is executed when you press the key itself, the function at the bottom of the key is executed when you press before the key. If you have a VT200 or VT300-series terminal, the keys are mapped identically, but there are additional keys to the left of the keypad that you can use. See Figure 4.8.

Figure 4.7: VT100, VT200, or VT300 Keypad Layout for EDT

Figure 4.8: Additional EDT Keys on VT200 or VT300


Help is available from within keypad mode by pressing . EDT is also described in Chapter 9 of the OpenVMS User's Manual.

Recovering a Journal File

During an editing session, EDT creates a temporary journal file containing every keystroke entered during a session. This file is usually discarded when you close the edited file, but it can be explicitly saved. The journal file enables you to recover whatever work you did on a file if some type of system interrupt occurs during the session. Because journal files are not continuously updated--only incrementally updated--the last few editing commands or keystrokes may not always be saved, but the bulk of the session will be recoverable.

Journal files have an type of .JOU. For example, if you are editing a file called MYPAPER.TXT, during your editing session, there will be a temporary file called MYPAPER.JOU. If you want to save the journal file when you exit from the editor, you would type (from the command mode):

* exit/save
If you have the misfortune to be in the middle of an editing session when the system crashes, your session can be recovered by typing the following command (you would, of course, replace specify your own file name instead of "MYPAPER.TXT"):

It is wise to save the file immediately after recovering your editing session because after recovering the file, the journal file is deleted.

When you recover files, specify the name of the original file--not
the journal file.

Starting EDT
Table 4.5: - EDT Line Mode Commands
Basic Editing
Figure 4.7: - VT100, VT200, or VT300 Keypad Layout for EDT
Figure 4.8: - Additional EDT Keys on VT200 or VT300
Recovering a Journal File

Generated with CERN WebMaker