The Top 20 WordStar Editing Commands ==================================== Execute to the cursor F4 Execute 1 line of code F7 Execute 1 line or 1 function F8 Save the program on the disk Alt/F S Exit editor Ctrl/K D Exit editor, no save Ctrl/K Q Find Ctrl/Q F Find & replace Ctrl/Q A Repeat last find Ctrl/L Delete the character under the cursor Del Delete character left Backspace Delete line Ctrl/Y Mark block begin Ctrl/K B Mark block end Ctrl/K K Mark single word Ctrl/K T Indent block Ctrl/K I Unindent block Ctrl/K U Move block Ctrl/K V Copy block Ctrl/K C Delete block Ctrl/K Y Read block from disk Ctrl/K R Page down Ctrl/C or PgDn Page up Ctrl/R or PgUp Display a variable Alt/D Position the Cursor up arrow to move the cursor up 1 line (Ctrl-E) down arrow to move the cursor down 1 line (Ctrl-X) left arrow to move the cursor 1 character to the left (Ctrl/S) right arrow to move the cursor 1 character to the right (Ctrl/D) Word left Ctrl-A or Ctrl-Left arrow Word right Ctrl-F or Ctrl-Right arrow home to move the cursor to the beginning of the line end to move the cursor to the end of the line pg up to move the cursor up a screen (Ctrl-R) pg dn to move the cursor down a screen (Ctrl-C) ctrl/pg up to move the cursor to the top of the program ctrl/pg dn to move the cursor to the end of the program ctrl/c to move the cursor down 1 page ctrl/r to move the cursor up 1 page Scroll up Ctrl/W Scroll down Ctrl/Z Last position Ctrl/Q P Miscellaneous Commands Exit editor, no save Ctrl/K D or Ctrl/K Q Save and edit Ctrl/K S or F2 Load new file F3 Tab Ctrl/I or Tab Tab mode Ctrl/O T or Ctrl-Q T Fill mode Ctrl/O F Autoindent on-off Ctrl/O I or Ctrl-Q I Unindent mode Ctrl/O U Restore line Ctrl/Q L Set place marker Ctrl/K n Find place marker Ctrl/Q n Pair matching right Ctrl/Q [ Pair matching left Ctrl/Q ] Control character prefix Ctrl/P Abort operation Ctrl/U Restore error message Ctrl/Q W Find Ctrl/Q F Find & replace Ctrl/Q A Repeat last find Ctrl/L Search Options for Find or Find & Replace -------------------------------------------- B Searches backward G Searches globally L Searches locally n n = any number; searches n times N Replaces without asking U Ignores uppercase or lowercase W Searches for whole words only Written by Bill McDaniel An Alphabetical List of WordStar Commands ========================================= Abort operation Ctrl-U Autoindent on-off Ctrl/O I or Ctrl/Q I Character left Ctrl/S or Left arrow Character right Ctrl/D or Right arrow Control character prefix Ctrl/P This command is used to insert control characters into the text. To insert an escape character press: Ctrl-p then press: To insert a forms feed press: Ctrl-P Ctrl-L To search for a combination, key in: ^Q^F for find, then key in ^P^M^P^J. Copy block Ctrl/K C Delete block Ctrl/K Y The block to be deleted must first be marked with ^K^B and ^K^K. See 'Mark block begin' and 'Mark block end' Delete character Ctrl/G or Del Delete the character under the cursor Delete character left Ctrl/H or Backspace Delete line Ctrl/Y Delete the line the cursor is on Delete to end of line Ctrl/Q Y This command deletes all of the characters from the cursor to the end of the line. It will not delete a CR/LF combination. Use ^T for that. Delete word right Ctrl/T Exit editor Ctrl/K D Exit editor, no save Ctrl/K Q Fill mode Ctrl/O F Find Ctrl/Q F Search Options for Find -------------------------------------------- B Searches backward G Searches globally L Searches locally n n = any number; searches n times U Ignores uppercase or lowercase W Searches for whole words only Find & replace Ctrl/Q A Search Options for Find & Replace -------------------------------------------- B Searches backward G Searches globally L Searches locally n n = any number; searches n times N Replaces without asking U Ignores uppercase or lowercase W Searches for whole words only Find place marker Ctrl/Q n Hide-display block Ctrl/K H Indent block Ctrl/K I ^ki does not work with Turbo Pascal 3 or Turbo Pascal 4.0 Insert line Ctrl/N Insert mode on-off Ctrl/V or Ins Insert options Ctrl/O O insert the following 2 lines into the text at the cursor. {$A+,B-,D+,E+,F-,I+,L+,N-,O-,R-,S+,V+} {$M 16384,0,655360} these are the default options for Turbo Pascal Last position Ctrl/Q P Line down Ctrl/X or Down arrow Line up Ctrl/E or Up arrow Load new file F3 Mark block begin Ctrl/K B Mark block end Ctrl/K K Mark single word Ctrl/K T Move block Ctrl/K V Page down Ctrl/C or PgDn Page up Ctrl/R or PgUp Pair matching left Ctrl/Q ] Pair matching right Ctrl/Q [ Print block Ctrl/K P Read block from disk Ctrl/K R Repeat last find Ctrl/L Restore error message Ctrl/Q W Displays the last error message at the top of the screen If no errors have occurred it displays "*** No Errors Found. Press " Restore line Ctrl/Q L Save and edit Ctrl/K S or F2 Scroll down Ctrl/Z Scroll up Ctrl/W Set place marker Ctrl/K n Tab Ctrl/I or Tab Tab mode Ctrl/O T or Ctrl-Q T Unindent block Ctrl/K U Unindent mode Ctrl/O U Word left Ctrl/A or Ctrl-Left arrow Word right Ctrl/F or Ctrl-Right arrow Write block to disk Ctrl/K W WordStar commands by category Block Commands Define the Beginning of a Block Position the cursor then key in: ctrl/K ctrl/B Define the end of the block. Position the cursor then key in: ctrl/K ctrl/K Mark single word Ctrl/K T Once a block has been defined, then 1 of several commands can be performed on the block. Copy Block Mark the block you want to copy using ctrl/K ctrl/B & ctrl/K ctrl/K. Reposition the cursor where you want a copy to be placed. Copy the block using the command ctrl/K ctrl/C. The block is copied to the cursor. The original is left intact. Move Block Mark the block you want to copy using ctrl/K ctrl/B & ctrl/K ctrl/K. Reposition the cursor where you want the text to be placed. Move the block using the command ctrl/K ctrl/V. The block is MOVED to the cursor. The original is gone. Delete Block Mark the block you want to copy using ctrl/K ctrl/B & ctrl/K ctrl/K. Delete the block using the command ctrl/K ctrl/Y. The block is deleted regardless of the position of the cursor. Read block from disk Ctrl/K R Write Block to a disk file Mark the block you want to write using ctrl/K ctrl/B & ctrl/K ctrl/K. Press ctrl/K ctrl/W then key in the filename to write the block to the disk. Hide-display block Ctrl/K H Print block Ctrl/K P Indent block Ctrl/K I Unindent block Ctrl/K U Delete Characters, Words, Lines & Blocks Delete Character Press the DEL key and the character UNDER the cursor will be deleted. DEL will not delete a () combination. Press the BACKSPACE key and the character BEFORE the cursor will be deleted. If the cursor is at the beginning of the line, then pressing the BackSpace key deletes the preceeding effectively combining the 2 lines together. Delete Word If the cursor is under a non-blank character then ctrl/T will delete the character under the cursor plus of the following characters that are letters, underscores or digits. If the cursor is under a blank character then ctrl/T will delete the blank character and all characters following down to the first non-blank. If the cursor is at the end of the line, ctrl/T will delete the effectively combining the current line with the NEXT line. Delete Line ctrl/Y will delete the line the cursor is on. Delete Block ctrl/K ctrl/Y will delete the block marked by ctrl/K ctrl/B and ctrl/K ctrl/K. Be careful, you can do some real damage with this. Delete to end of line Ctrl-Q Y will delete all of the characters to the end of the line Delete character left Ctrl-H or Backspace Delete character Ctrl-G or Del Delete word right Ctrl-T Delete block Ctrl-K Y Enter and Exit ed filename causes the file called filename to be edited. This editor is based on the WordStar editor, therefore many of the commands are the same. Press ctrl/k kctrl/d to exit the editor. This command will automatically save the latest version of your file. Insert Commands Position the cursor then press ENTER to insert a new line at the cursor. Pressing the INSERT key causes the editor to toggle between insert mode and overlay mode. In insert mode, when you type, characters to the right of the cursor are moved to the right to make room. In overlay mode, when you type, characters to the right of the cursor are replaced by the characters being typed. Insert mode on-off Ctrl/V or Ins Insert line Ctrl/N Insert options Ctrl/O O