HP OpenVMS Systems Documentation

Content starts here

OpenVMS User's Manual


Previous Contents Index

9.8.3 Inserting Text

The following table describes commands and keys that can be used to insert text:

Keypad Mode Line Mode Nokeypad Mode Description
Ctrl/L   ^L. Inserts a form-feed character (<FF>) into your text.
Ctrl/M   ^M. Inserts a carriage-return character (<CR>) into your text.
Ctrl/R Ctrl/R REF Clears and redraws the screen display (in keypad mode) or line (in line mode), eliminating any extraneous characters or messages. The current text you are editing remains unchanged. In keypad mode, Ctrl/R is identical to Ctrl/W.
Ctrl/W   REF Clears and redraws the screen display (in keypad mode) or line (in line mode), eliminating any extraneous characters or messages. The current text you are editing remains unchanged.
  Ctrl/Z Ctrl/Z Completes the insert operation and returns EDT to the command state. Used with the INSERT (nokeypad I) and REPLACE (nokeypad R) commands.
FILL (VT100)
Ctrl/F (VT52)
FILL FILL
FILLSR
Takes a select range of lines and reorganizes the text so that the maximum number of whole words can fit within the current line width. In line mode, fills a selected range of lines.
  INCLUDE   Copies external files into the EDT text buffer. In line mode, EDT displays an asterisk (*) prompt when the INCLUDE command finishes copying the file. In keypad or nokeypad mode, the included text appears on the screen.
OPEN LINE INSERT I [Return] Inserts a line terminator in the text you are editing at the current cursor position and makes the line terminator the new cursor character.
  INSERT I Adds text to the current or specified buffer.
SPECINS   ASC (ASCII)
Circumflex (^)
Enables you to insert any character from the DEC Multinational character set into your text, using the character's decimal equivalent value (see Appendix B). The circumflex (^) works only for characters with decimal values 0 to 31.

9.8.4 Deleting and Restoring Text

The following table describes commands and keys that can be used to delete and restore text:

Keypad Mode Line Mode Nokeypad Mode Description
Ctrl/U   DBL Deletes everything from the character to the left of the cursor to the beginning of the line.
  DELETE D Deletes a line or group of lines, depending on the range that you specify. If you do not specify a buffer or a range, EDT deletes the current line. If you specify a buffer but not a range, EDT moves to that buffer and deletes its entire contents.
DEL C DELETE DC Deletes the character on which the cursor is positioned.
    D-C Deletes the character to the left of the cursor.
    D+C Deletes the character to the right of the cursor.
DEL EOL DELETE DEL Deletes everything on a line from the current cursor position up to, but not including, the line terminator.
DEL L DELETE D+NL Deletes everything on a line from the current cursor position up to and including the line terminator.
DEL W DELETE DEW Deletes words or parts of words.
LINEFEED   DBW Deletes the word or characters in a word to the left of the cursor up to the beginning of the previous word.
REPLACE REPLACE R (Replace) In keypad mode, deletes text in the select range and replaces it with the contents of the PASTE buffer. In line and nokeypad mode, deletes the lines specified by range from the current or specified buffer and replaces the deleted lines with text that you enter at the terminal.
UND C   UNDC Inserts the current contents of the delete character buffer into text to the left of the cursor.
UND L   UNDL Inserts the current contents of the delete line buffer into text to the left of the cursor.
UND W   UNDW Inserts the current contents of the delete word buffer into text to the left of the cursor.

9.8.5 Locating Text

The following table describes commands and keys that can be used to locate text:

Keypad Mode Line Mode Nokeypad Mode Description
ADVANCE   ADV Sets the direction for subsequent editing work to forward (to the right of the cursor and down toward the end of the buffer).
BACKUP   BACK Sets the direction for subsequent editing work to backward (to the left of the cursor and toward the beginning of the buffer).
    CLSS Clears the text string currently in the search buffer.
FIND FIND "string"
^@.
Searches for specified text.
FNDNXT FIND "" "" Searches for the next occurrence of a string defined by the FIND command.
RESET   RESET Cancels the active select range, sets the direction to advance, and sets EDT to the DMOV (default move) state.
    DESEL Cancels the active select range.
    TGSEL Combines the SEL and DESEL commands. When there is an active select range, the TGSEL command cancels it, performing the same function as the DESEL command. When there is no active select range, TGSEL initiates the process of creating a select range, just as the SEL command does.
SELECT   SEL Sets up a select range for use with keypad functions such as APPEND, CHNGCASE, CUT, FILL, REPLACE, SUBS, and Ctrl/T.
    SSEL Finds a string and designates it as a select range.
  SET SEARCH   Determines how EDT locates strings during your editing sessions.
  SHOW SEARCH   Indicates the search parameters EDT uses to locate strings in text.

9.8.6 Substituting Text

The following table describes commands and keys that can be used to substitute text:
Keypad Mode Line Mode Nokeypad Mode Description
SUBS SUBSTITUTE S In keypad mode, replaces the current search string with the contents of the PASTE buffer. In line and nokeypad mode, replaces one string with another throughout the specified range.
  SUBSTITUTE NEXT SN Searches for the next occurrence of a string and replaces it with another string. This command uses strings that have been stored in the search buffer and in the substitute buffer.

9.8.7 Moving Text

The following table describes commands and keys that can be used to move text:

Keypad Mode Line Mode Nokeypad Mode Description
APPEND   APPEND Deletes the select range (keypad mode) or specified entity (nokeypad mode) from the current buffer and adds it to the end of either the PASTE buffer (the default) or the specified buffer.
  COPY   Copies the specified text to the specified location. You can copy a range of text from one location to another within the same buffer, or you can copy to and from different buffers, creating new buffers as appropriate. No text is deleted. The /DUPLICATE qualifier enables you to copy the specified text n times.
CUT   CUT In keypad mode, removes the active select range from the current buffer and stores it in the PASTE buffer. In nokeypad mode, removes the specified entity from the text buffer and stores it in another specified buffer.
CUT + PASTE MOVE CUT + PASTE Moves lines from one location to another within the current buffer or from one buffer to another. The lines are deleted from their original position and are inserted at the new location.
PASTE COPY
MOVE
PASTE Copies or moves text within a buffer. In keypad mode, PASTE copies the PASTE buffer contents into the current buffer. In nokeypad mode, PASTE copies the contents of any buffer into the current buffer.

9.8.8 Indenting Text

The following table describes commands and keys that can be used to indent text:

Keypad Mode Line Mode Nokeypad Mode Description
Ctrl/A   TC (Tab Compute) Establishes a tab position and resets the indentation level. The indentation level is the number of columns, starting at the left of the screen, that you want to leave blank before beginning a line of text. To use this command, the current cursor position must be a multiple of the SET TAB value.
Ctrl/D   TD (Tab Decrement) Decreases the current indentation level count by one setting. The indentation level count is generally set by the Ctrl/A or TC (Tab Compute) command.
Ctrl/E   TI (Tab Increment) Increases the current indentation level count by one setting. The indentation level count is generally set by the Ctrl/A or TC (Tab Compute) command.
Ctrl/T TAB ADJUST TADJ (Tab Adjust) Uses the value established by the line-mode SET TAB command to indent lines of text in a select range. Requires SET TAB to be in effect.
  SET TAB
SHOW TAB
  Establishes the SET TAB value for the various tabbing functions (tab compute, tab adjust, tab increment, and tab decrement). SHOW TAB indicates the SET TAB value and the tab indentation level count.
    SHL (Shift Left) Moves the entire buffer text eight characters (one tab stop) to the left.
    SHR (Shift Right) Moves the entire buffer text eight characters (one tab stop) to the right.
TAB
Ctrl/I
  TAB Moves text to the right, regardless of whether ADVANCE or BACKUP are in effect. The number of column positions that the text moves depends on the cursor position, the value set by the SET TAB command (if one is in effect), and the indentation level count (if one is in effect).

9.8.9 Changing the Case of Text

The following table describes commands and keys that can be used to change the case of text:

Keypad Mode Line Mode Nokeypad Mode Description
CHNGCASE   CHGC Changes the case of letters in your text. Uppercase letters become lowercase; lowercase letters become uppercase.
    CHGL Changes all uppercase letters within the specified entity to be lowercase. Letters that are already lowercase remain unchanged.
    CHGU Changes all lowercase letters within the specified entity to be uppercase. Letters that are already uppercase remain unchanged.
    DLWC Changes uppercase letters to lowercase wherever the cursor is moved.
    DUPC Changes lowercase letters to uppercase wherever the cursor is moved.
    DMOV Returns the editing session to the default state after you use either DLWC (default lowercase) or DUPC (default uppercase).
  SET CASE
SHOW CASE
  Uses flags to distinguish uppercase and lowercase letters at a single-case terminal. SHOW CASE indicates which case (upper, lower, or none) has been established by the SET CASE command.

9.8.10 Using Multiple Buffers

The following table describes commands and keys that can be used when using multiple buffers:

Keypad Mode Line Mode Nokeypad Mode Description
  CLEAR   Deletes the contents of the specified buffer.
  SHOW BUFFER   Lists all accessible buffers currently in your EDT session.

9.8.11 Defining Keys

The following table describes commands and keys that can be used to define keys:

Keypad Mode Line Mode Nokeypad Mode Description
    BELL Causes the terminal bell to sound when a command is processed. Used primarily in keypad key definitions.
Ctrl/K DEFINE KEY DEFK Defines or redefines function keys used in keypad editing. Key definitions are based on nokeypad commands. In keypad mode, Ctrl/K starts the key definition process. In nokeypad mode, you can define a key sequence other than Ctrl/K to handle the key definition process.
  SHOW KEY   Displays the definition of any keys that have keypad editing functions.
  SET [NO]KEYPAD
SHOW KEYPAD
  Determines which screen editing mode (keypad or nokeypad) EDT accesses from line mode when you enter the CHANGE command. SHOW KEYPAD indicates which mode is in effect.

9.8.12 Controlling Screen and Terminal Settings

The following table describes commands and keys that can be used to control the EDT screen and terminal settings:

Keypad Mode Line Mode Nokeypad Mode Description
[Return]     Adds a line terminator to the left of the current cursor position in the text you are editing.
  SET [NO]AUTOREPEAT   Prevents keypad keys (including arrow keys) from repeating faster than EDT can update the screen.
  SHOW AUTOREPEAT   Indicates whether autorepeat is in effect.
  SET LINES   Limits the number of lines that EDT displays on the terminal screen at one time.
  SHOW LINES   Displays the line limit.
  SET [NO]NUMBERS   Determines whether EDT displays line numbers during line-mode editing.
  SHOW NUMBERS   Displays the current setting.
  SET PARAGRAPH [NO]WPS   Sets paragraph default boundary limits.
  SHOW PARAGRAPH   Indicates whether SET PARAGRAPH WPS or SET PARAGRAPH NOWPS is in effect.
  SET [NO]QUIET   Silences the terminal bell that ordinarily sounds whenever EDT displays an error message during a screen-mode editing session.
  SHOW QUIET   Indicates whether the bell has been turned off.
  SET [NO]REPEAT   Disallows use of the GOLD key repeat feature, which allows you to repeat functions in keypad mode, and the SPECINS keypad function.
  SHOW SCREEN   Displays the current screen width setting.
  SET TERMINAL
SHOW TERMINAL
  Corrects or changes terminal settings to match the type of terminal you are using. SHOW TERMINAL displays the terminal settings that are currently in effect for your editing session.
  SET TERMINAL   Corrects or changes terminal settings to match the type of terminal you are using.
  SHOW TEXT   Indicates what text is displayed for the form-feed character or the end-of-buffer mark.
  SET [NO]TRUNCATE   Causes lines longer than the current screen width to wrap onto subsequent lines when you are working in screen mode. (In line mode, EDT always wraps long lines.) SET TRUNCATE does not take word boundaries into consideration; enter SET WRAP to break lines at word boundaries.
  SHOW TRUNCATE   Indicates whether SET TRUNCATE is in effect.
  SET WORD [NO]DELIMITER   Determines how word entity boundaries are interpreted by EDT. By default, word delimiters are treated as separate words (SET WORD DELIMITER).
  SHOW WORD   Indicates whether SET WORD NODELIMITER is in effect.
  SET [NO]WRAP   Causes lines of text to wrap when new text is inserted into a buffer in keypad mode. The SET WRAP command also determines the line length for the FILL command.
  SHOW WRAP   Indicates whether the SET WRAP command is in effect and, if so, what the SET WRAP value is.


Previous Next Contents Index