INTRODUCTION: EDI is a line and page oriented editor. -------------------------------------------------------- 1/ You can only work on one line at a time (the "CURRENT LINE") 2/ You can only work on one page at a time (the "CURRENT PAGE") 3/ EDI has two distinct modes of operation: a/ INSERT mode, anything typed in goes directly to the file. b/ COMMAND mode, used to alter the text already in the file. (This mode is indicated by a "*" prompt by the computer.) 4/ EDI is initiated by the MCR command "EDI FILENAME.EXT" a/ If a file exists, EDI reads page 1 and enters COMMAND mode. b/ If no file exists, EDI creates one and enters INSERT mode. TEXT MANIPULATION COMMANDS: --------------------------- I Puts you in INSERT mode.Text will be entered into the file after the current line. Two successive 's returns to COMMAND mode. O O(verwrites) the current line (or n lines.) Puts you in INSERT On mode just like I. Two successive 's returns to COMMAND mode. D D(eletes) the current line (or n lines, starting at the CURRENT Dn LINE.) Leaves the CURRENT LINE pointing at the following line. C/aaa/bbb/ C(hanges) first occurence of the character string "aaa" to "bbb" nC/aaa/bbb/ If proceeded by a number, performs the operation n times on the LC/aaa/bbb/ line.LC changes the whole line. PA changes from the CURRENT LINE PA/aaa/bbb/ to the end of page. Separators may be any character, not just /. SAVEn name Saves n lines of text starting at the current line into the file specified. If no name is specified, the file "SAVE.TMP" is used. UNSAVE name Restores text from the specified file after the current line. EX name Ends the editing session. If a file name is given the latest ver- sion will be renamed to the specified name. MOVING AND DISPLAYING THE CURRENT LINE -------------------------------------- P P(rints) the CURRENT LINE. Prints the CURRENT LINE and moves the CURRENT LINE down 1 line. Moves the CURRENT LINE up one line and prints the CURRENT LINE. nL Moves the CURRENT LINE down/up n lines, prints the CURRENT LINE. T Moves the CURRENT LINE to the T(op) of the CURRENT PAGE. BO Moves the CURRENT LINE to the BO(ttom) of the CURRENT PAGE. REN Reads the next page of up to 80 lines into memory. TOF Brings you back to the first page of the document, and creates a new copy (version) of the file. L abc Locates the specified string characters. L stops at the end of PL abc the current page, PL (page locate) searches subsequent pages. COMBINING COMMANDS AND REPEATING COMMANDS --------- -------- --- --------- -------- AAA&BBB Command AAA and BBB can be combined on one line if separated by the ampersand (&) character. MACRO n abc Stores a complex command (or several commands separated by &'s) into command buffer n for later use. (n can be between 1 and 3.) Mn Executes the previously defined command number n. If preceeded mMn by a number, executes the operation m times.