home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / M-BRIEF.ZIP / EDITOR.DOC < prev    next >
Text File  |  1988-07-24  |  6KB  |  192 lines

  1. /* EDITOR.doc
  2. **
  3. ** Copyright (c) 1988, Christopher Laforet
  4. ** All Rights Reserved
  5. **
  6. */
  7.  
  8. ** Updated: Sat, 23-Jul-1988 :: 21:40:50
  9.  
  10.  
  11.     This document describes the state of the MicroSoft Editor as configured
  12. by myself as of 5-30-88.  The following keystrokes attempt to emulate the
  13. wonderfully natural feel of Brief (Copyright by Underware Inc.).  There are
  14. some stupid inconsistencies which have been created by the seemingly
  15. short-sighted programmers at MicroSoft (one is the inability to use the ALT-N
  16. to switch between ALL files being currently edited).  Needless to say, I
  17. have spent many frustrating hours at the computer attempting to correct for
  18. some of the stupid syntax that MicroSoft applied to many of their functions.
  19. Well, without any further ado, I'll describe the functions.
  20.  
  21.  
  22. 1.    Cursor Movement
  23.     ---------------
  24.  
  25.     Up - Up Arrow
  26.     Down - Down Arrow
  27.     Left - Left Arrow
  28.     Right - Right Arrow
  29.     Page Up - PgUp
  30.     Page Down - PgDn
  31.     Top of File - Ctrl Home
  32.     Bottom of File - Ctrl End
  33.     Top of Window - Home
  34.     Bottom of Window - End
  35.     Beginning of Line - Ctrl PgUp
  36.     End of Line - Ctrl PgDn
  37.     Left of Window - Shift PgUp
  38.     Right of Window - Shift PgDn
  39.     Previous Word - Ctrl Left Arrow
  40.     Next Word - Ctrl Right Arrow
  41.     Top of Paragraph - Ctrl Up Arrow
  42.     Bottom of Paragraph - Ctrl Down Arrow
  43.     Newline - Enter
  44.     Delete Previous Character - Bksp
  45.     Delete Character under Cursor - Del
  46.     Insert Line on Current Line - Shift Enter
  47.     Insert Line on Next Line - Ctrl Enter
  48.     Tab - Tab
  49.     BackTab - Shift Tab
  50.     Set a Tag - Alt S
  51.     Jump to Tag - Alt J
  52.     Go to a Specific Line - Alt G
  53.     Delete Text from Cursor to End of Line - Alt K
  54.     Delete a Line - Alt D
  55.  
  56.  
  57.  
  58. 2.  Block Commands
  59.     --------------
  60.  
  61.     Mark - Alt M
  62.     Delete - Delete
  63.     Copy to Scrap - F9 or Num+
  64.     Cut to Scrap - F10 or Num-
  65.     Insert Scrap - Ins
  66.  
  67.  
  68.  
  69. 3.  Searching and Replacement
  70.     -------------------------
  71.  
  72.     Search Forwards - F5
  73.     Search Backwards - Shift F5
  74.     Find Next - Shift F6
  75.     Toggle Case Sensitivity - Alt C
  76.  
  77.  
  78.  
  79. 4.  File Handling and Windows
  80.     -------------------------
  81.  
  82.     Change to Other Buffered File - Alt N
  83.     Edit Another File, Buffer Current - Alt E
  84.     Show List of Previously Editied Files - Alt B
  85.     Load Filename Under Cursor - Ctrl O
  86.     Change Filename - Alt O
  87.     Write File - Alt W
  88.     Read File in at Current Cursor Location - Alt R
  89.     Split Window Horizontally - F2
  90.     Split Window Vertically - F1
  91.     Split Window Horizontally at Cursor Position - Shift F2
  92.     Split Window Vertically at Cursor Position - Shift F1
  93.     Jump to Next Window - F3
  94.     Remove a Window - F4
  95.     Get Keystroke List - Alt H
  96.     Shell to DOS - Alt Z
  97.     Exit Editor - Alt X
  98.  
  99.  
  100. 5.  C Specific Macros
  101.     -----------------
  102.  
  103.     If - Ctrl I
  104.     Else - Ctrl E
  105.     Do-while - Ctrl D
  106.     While - Ctrl W
  107.     For - Ctrl F
  108.     Switch - Ctrl S
  109.     Case - Ctrl C
  110.     Include - Ctrl P
  111.     Braces - Ctrl [
  112.     Parentheses - Ctrl ]
  113.     Main - Ctrl M
  114.     Header - Ctrl H
  115.     Balance Braces and Parens - Alt P
  116.     Compile - Ctrl F9
  117.     Next Error Message - Ctrl F10
  118.  
  119.  
  120. 6.  Word Processing
  121.     ---------------
  122.  
  123.     Toggle Auto Indenting - Alt Y
  124.     Toggle Tabs Expanded to Spaces - Alt T
  125.     Toggle Word Wrapping - Alt Q
  126.     Convert Marked Line (Textarg) to Uppercase - Ctrl U
  127.     Convert Marked Line (Textarg) to Lowercase - Ctrl L
  128.     Write Time Stamp - Ctrl T
  129.     Quote Next Character as Graphic - Ctrl G
  130.  
  131.  
  132. 7.  Special Commands
  133.     ----------------
  134.  
  135.     Arg (Mark) - Alt M
  136.     Meta - Alt L
  137.     Assign - Alt A
  138.     Undo - Alt U or Num*
  139.     Toggle Insert Mode - Alt I
  140.  
  141.  
  142.     The previous macros are supplied in 4 files....These are the TOOLS.INI file,
  143. the STDMACRO.EXE, the C_MACRO.EXE and the EXTMACRO.EXE.  Please note that you
  144. will have to adjust the TOOLS.INI file as per where the 3 executables must be
  145. loaded from.  I currently have them loading from my RAMDISK (drive e:\)....
  146.  
  147.     Word of warning:  Be careful using Alt X to exit...make sure that you have
  148. written ALL files that you wish to keep with Alt W BEFORE EXITING.  The dumb
  149. MS editor does not ask if one is sure about the exit, EVEN THOUGH THE TOOLS.INI
  150. file has askexit: set!!!  Hopefully one day it will respond to that switch!
  151.  
  152.     You will notice that backup type is set to BAK.  If you do lots of editing,
  153. you will find that UNDEL wastes loads more disk space than the convenience is
  154. worth.    Feel free to change that if you wish.
  155.  
  156.     Do not forget to set the following environment variables (preferably in your
  157. autoexec.bat).  Set INIT=<path where tools.ini will be found> and Set TMP=<some
  158. temporary directory or RAMDISK for the editor to use as virtual memory>.  I have
  159. edited files as large as 350K without any problems with the TMP variable set
  160. pointing to a "scratch" directory (d:\tmp) on one of my drives.  If you find
  161. that you get the message "Out of VM space. Attempting to recover", make sure
  162. that your TMP variable is set and is pointing to an adequately sized disk area
  163. (especially if you are using a RAMDISK).
  164.  
  165.  
  166. Contacting me for suggestions or comments may be via any of the following
  167. channels:
  168.  
  169. US-Mail:
  170.  
  171. Christopher Laforet
  172. 511-D Poplar St
  173. Graham, NC 27253.
  174.  
  175. Fidomail:
  176. Chris Laforet, c/o 151/401, Fido's One Dish.
  177.  
  178. Compuserve Email:
  179. Chris Laforet, 76120,110.
  180.  
  181. BBS:
  182. The Programmer's Oasis, (919) 226-6957.
  183.  
  184. Needless to say, I am a free agent and may or may not choose to act on
  185. suggestions given to me.
  186.  
  187. One more point:  There are absolutely NO warranties on these macros....if they
  188. work for you, fine!  If they don't, delete them!  I am just offering them to
  189. you if you want them, other than that do with them as you wish!  Break them and
  190. as Wynn Wagner says, the only warranty you have is that you get to keep both
  191. broken pieces!  'Nuff said!
  192.