CONTROL COMMANDS EXTENDED COMMANDS C-A Start Of Line C-X C-Z Exit and save file * C-B Backward Character C-X C-V Visit (Get/save) file C-C Not a command C-X C-W Placeholding Save * C-D Delete Character C-E End of Line C-X C-X Swap Point and mark * C-F Forward Character C-X C-P TECO's P command * C-H Back character C-X C-A TECO's A command * C-I Insert TAB C-X C-Y TECO's Y command * C-J Indent New line EEEEE DDD M M AAA CCC SSSS * C-K Kill Line C-X O Enter Overprint Mode E D DD MM MM A A C C S C-L Redraw screen C-X Q Quit to TECO or leave EEEE D DD M M M AAAAA C SSS * C-M Carriage Return overprint mode E D DD M M A A C C S * C-N Next line C-X # Set key binding EEEEE DDD M M A A CCC SSSS * C-P Previous Line C-X $ Enable TECO commands * C-R Reverse SEARCH C-X = Show location & mark C-T Transpose characters * C-V View Next Screen QUERY REPLACE C-W Wipe Region of text Extensible C-X eXtended commands "Query Replace" .. Enter string to Text Preparation System * C-Y Yank back region of text Search for. For Most Campus Terminals * C-Z SEARCH forwards C-[ command prefix "With" .. Enter new string C-_ or C-? Set Mark (use C-? on Telerays) When Query Replace shows you each occurrence, type one of these INSTANT REFERENCE CARD ESCAPE COMMANDS commands: ESC- H HELP on commands Space .. Change and show next. N .. No change and show next. ESC- < Start of Buffer . .. Change and exit. ESC- > End of buffer ! .. Change all rest and exit. ESC- Rubout Delete Word Backward C-G .. Just exit. * ESC- A Start of Sentence * ESC- B Backward Word Any other response will show a list * ESC- C Capitalize Word of valid responses. * ESC- D Delete Word * ESC- E End of Sentence TECO COMMANDS * ESC- F Forward Word * ESC- G Go to Line Any legal TECO commands may be used * ESC- L Lowercase Word except you must not alter Q Registers _______________________________ ESC- Q Quote next character A through U. You may use the EDMACS | | ESC- S Center Line commands: | For more information, see the | ESC- T Transpose words C-A, C-E, C-F, C-B, C-N, | EDMACS Reference Manual which | * ESC- U Uppercase words RUBOUT, C-P, and C-L | may be obtained by printing | * ESC- V View last screen | the file "[44,22]EDMACS.DOC". | ESC- W Wipe region (no kill) to edit the command. Exit via two |_______________________________| * ESC- Z Repeat search ESCAPEs. Note that neither of the ESC ESC Execute TECO command escapes will be part of the command ESC $ Repeat TECO command string, even though the first will ESC- C-R Query Replace echo. The ESC that terminates a * ESC- C-T Transpose Lines string may not be one of the escapes Prepared by ESC- Same as ^_ used to execute the TECO command. To Michael Bloom ESC- M Same as ^_ abort the TECO command, type C-G. California State University ESC- ^H Remove Backspace Pairs Northridge, California NOTE that TECO commands are initially January 1982 Commands marked with an '*' above disabled because it is easy to type take numeric arguments by preceding ESC ESC by accident on telerays. them with ESC-number Use C-X $ to enable TECO commands. STARTING EDMACS SAMPLE EXECUTION +---------------------------------+ MU [44,12]EDMACS filnam.ext | _ | When you start out for the first time or | | the screen is blank as is the one at MU [44,12]EDMACS outname=inname | | left. When you start typing, what | | you type appears on the screen as you These commands will start up to edit +---------------------------------+ are typing it. See what happens when a file. If it does not exist, a new we type the word "Hi!" one will be created. If the second Typed: Hi! form is used, outname will be the +---------------------------------+ result file, and EDMACS will take | Hi!_ | OK, we've typed "Hi!". its input from inname. | | | | The screen now contains the word CHANGING FILES WITHIN EDMACS | | "Hi!". +---------------------------------+ C-X C-V If we type some more, we should see Typed: My name is Tommy Totoh more appear on the screen. Let's see This command will offer to save the +---------------------------------+ what happens. file currently being edited. Answer | Hi! My name is Tommy Totoh_ | Yes or No. You will then be asked to | | Well it looks like it still works. name another file to edit. Type its | | What we have typed has appeared on name, a return, and begin editing it. | | the screen. +---------------------------------+ Oops! Looks like we have typed the LEAVING EDMACS word "Tooth" wrong. Let's see how Typed: C-B we fix it. C-X C-Z +---------------------------------+ | Hi! My name is Tommy Totoh_ | We need to go backwards. Press the Exit and Save. Edmacs will ask you to | | control key and "B" together for the confirm with 'Yes' before exiting. | | control command "backwards". Now we | | are immediately following the mistake ESC -1 C-X C-Z +---------------------------------+ and we can rub out the two characters With a negative argument, Edmacs will that we typed wrong. exit without saving. Typed: Rubout Rubout +---------------------------------+ OK, we've pressed rubout twice. INSERTION | Hi! My name is Tommy toh_ | See how the two characters vanished? | | Start typing immediately. There is no | | Now we are ready to put the letters insert command. Whatever you type is | | "ot" in there. inserted. While the RETURN key will +---------------------------------+ move you to the start of a fresh line All we need to do is to type them. line, the LINEFEED key will indent Typed: ot the new line to match the indentation +---------------------------------+ present on the last non blank line. | Hi! My name is Tommy Tooth_ | Well, that looks ok. Say, would'nt | | it be nice if the name were on a line OVERPRINT The only "special MODE" | | all by itself? I think so! | | To do this, we want to go back two Causes what you type to replace +---------------------------------+ words. (To the beginning of the name what is under the cursor instead of Tommy). shoving it to the right as usual. To Typed: ESC-B ESC-B exit Overprint Mode, use C-X Q. +---------------------------------+ To do this, we press the ESCAPE key, | Hi! My name is T_ommy Tooth | release it, and then press "B". This SEARCHING | | is called "ESCAPE backwards" and just | | as we used "control backwards" to The command C-Z prompts you for a | | move back a letter, we use ESC-B for string to search for. Type in what +---------------------------------+ moving back by a word. Here, we had you want to find, then type ESCAPE to do this twice since we needed to twice. If the search fails, the bell Typed: go back by two words. will sound. ESC -Z will repeat the +---------------------------------+ search, and C-R will do a search in | Hi! My name is | Finally, we type a carriage return the reverse direction. | T_ommy Tooth | which moves the rest of the line down | | to the beginning of the next line. | | +---------------------------------+