MODE - Set various Editing Modes
Syntax
MODE |
? | [ EDIT | BROWSE | VIEW ] [ WORD | CHAR ] [ CS | DS ] |
Operands
? |
Display the current status of the MODE settings. |
EDIT |
Set the current edit session to EDIT mode, and set EDIT to be the default Mode in the Profile. |
BROWSE |
Set the current edit session to BROWSE mode, and set BROWSE to be the default Mode in the Profile. |
VIEW |
Set the current edit session to VIEW mode, and set VIEW to be the default Mode in the Profile. |
WORD |
Set the default search context to WORD mode. |
CHAR |
Set the default search context to CHAR mode. |
CS |
Set the current CHANGE mode to DS. |
DS |
Set the current CHANGE mode to DS. |
Description
The MODE command allows you to immediately change certain operating modes of the current edit session.
If ? is entered the current settings will be displayed.
The EDIT, BROWSE and VIEW keywords allow you to switch the basic mode of the edit session. i.e. convert an EDIT sessi9on to a BROWSE session with MODE BROWSE.
Note: You cannot alter the status of an existing Multi-Edit (MEdit) session. You CAN alter an existing Edit session to a MEdit sessio9n using the MEDIT command.
Setting the search context with MODE WORDS and MODE CHARS
Operands
[ WORD | WORDS ] |
[ CHAR | CHARS ]
Note: WORD and WORDS are interchangeable, as are CHAR and CHARS.
Description
These operands alter the normal search context between CHAR and WORD. This means that whenever a FIND, CHANGE or similar command is used, and none of the operands CHARS, WORD, PREFIX or SUFFIX are specified, the FIND or CHANGE command will proceed using the default assigned here.
This is convenient, for example, when many FIND and CHANGE commands are required that need WORD mode. By setting the search context to WORD mode, the operand WORD can be omitted from the individual FIND and CHANGE commands, making them shorter and faster to type.
CHARS mode is the installation default. Setting the search context in this manner is only a default, applied when none of the operands CHARS, WORD, PREFIX or SUFFIX are specified. Any of these keywords can be used on a FIND or CHANGE to override the current default search context, whatever it may be at that time.
When the default search context is set to WORDS, a W will appear the C/T indicator on the status line that shows the current CASE C/T mode. Thus, depending on the CASE mode, the indicator will show either C W or T W on the status line.
If you issue a RESET command with no operands, the default search context will revert to the system-wide default (either WORDS or CHARS) that is defined on the Options - General screen.
The search context checkbox defined on the Options - General screen is the default when a file is opened. You can set the search option to MODE CHARS or MODE WORDS any time you wish on any file tab. This setting is not saved in the profile.
Setting the CHANGE data shift mode (MODE DS or MODE CS)
Operands
[ CS | DS ]
Description
Specifies the default Column Shift / Data Shift mode for this edit session. For details see Effect of CHANGE/ALIGN Command on Column-Dependent Data for the significance of this operand. The new default will be saved in the file's Profile.