Appendix E: WordMaster Cheat Sheet¶
Note
This cheat sheet summarizes the core commands for the WordMaster editor under CP/M. WordMaster’s command structure is split across two primary modes: Video Mode and Command Mode.
Modes & Switching¶
WordMaster operates in three modes:
Video Mode – The primary editing mode. You see your text on screen, and control keys perform editing functions. WordMaster starts in this mode.
Command Mode – A line-oriented mode for complex commands like search, replace, and file operations. Press the
ESCkey from Video Mode to enter Command Mode.Insert Mode – A mode for typing large amounts of new text. Enter Command Mode and type
I+ Enter (<CR>) to activate.
To switch between modes:
To Command Mode – Press the
ESCkey from Video or Insert Mode.To Video Mode – From Command Mode, type
Vand press Enter (<CR>).To Insert Mode – From Command Mode, type
Iand press Enter (<CR>).
Video Mode Commands (Core Editing)¶
In Video Mode, standard typing inserts characters. Control characters
(indicated by ^ before a letter) perform editing functions. This is the
mode you’ll use most often.
Cursor & File Movement¶
Command |
Function |
|---|---|
|
Move cursor left one character. |
|
Move cursor right one character. |
|
Move cursor left one word. |
|
Move cursor right one word. |
|
Move cursor up one line. |
|
Move cursor down one line. |
|
Scroll file down one line on screen. |
|
Scroll file up one line on screen. |
|
Scroll file down one screenful (toward beginning of file). |
|
Scroll file up one screenful. |
Deletion Commands¶
Command |
Function |
|---|---|
|
Delete the character under the cursor. |
|
Delete the character to the left of the cursor. |
|
Delete the word to the right of the cursor. |
|
Delete the entire current line (including the carriage return). |
Insertion & Toggles¶
Command |
Function |
|---|---|
|
Toggle Insert Mode on/off. |
|
Insert a carriage return/line feed (start a new line). |
|
Insert a tab character. |
|
Put the next character typed into the file, even if it’s a control character. |
Other Video Mode Commands¶
Command |
Function |
|---|---|
|
Display a summary of edit commands (requires
|
|
Display a summary of edit commands (requires
|
|
Move cursor to the beginning of the next line. |
|
Exit Video Mode and enter Command Mode. |
Hint
Many functions in Video Mode are two-key commands. For instance,
^Q is the prefix for “Quick” movement commands (e.g., ^QS moves
to the start of a line).
Command Mode Summary (Advanced Operations)¶
Command Mode is indicated by a * prompt. Type commands here and press
Enter (<CR>) to execute them.
In the commands below:
nis an optional number (default is 1).$represents theESCkey,^Z, or a carriage return, which ends the string.
Command |
Function |
|---|---|
|
Return to Video Mode. |
|
Save changes and end the edit session. |
|
Quit the edit session without saving changes. |
|
Save changes, end edit, and restart WordMaster with the same file. |
|
Type n lines on the screen. |
|
Move the pointer n lines. |
|
Move the pointer n characters. |
|
Delete n characters. |
|
Kill (delete) n lines. |
|
Find the key string (short search). |
|
Find the key string (long search through entire file). |
|
Search and Substitute |
|
Replace |
|
Read (Yank) a file into the edit buffer at the current pointer position. |
|
Write n lines from the buffer to file. |
Key Details & Workflow¶
The “Repeat” Command (^@ or ^g): In Video Mode, pressing
^@(Control-Shift-2) will cause the next command to be repeated four times. For example,^@^Ywill delete four lines.Two-Character Commands: Many functions in Video Mode are two-key commands. For instance, ^Q is the prefix for “Quick” movement commands (e.g.,
^QSmoves to the start of a line).Help Files: Some commands (like
^Qand^J) require theWM.HLPfile to be present in the same directory as the WordMaster executable.