home *** CD-ROM | disk | FTP | other *** search
/ TopWare Tools / TOOLS.iso / tools / top1096 / m.hlp < prev    next >
Encoding:
Text File  |  1993-12-21  |  6.5 KB  |  152 lines

  1.         M's HELP FILE
  2. The Alternate and Control keys are used like the shift key. In this help
  3. text we abreviate Control by a ^ and Alternate by Alt.  For example:
  4. [^X] = Control X.  Typing an Escape is equivalent to holding the Alt key down.
  5. (Keystrokes are written in square brackets.)
  6.  
  7.     EDIT MODES
  8. [^X M] followed by one of [C] [O] [W] [X] [S] [I] [T] [P] or [B] Toggle Mode:
  9. C) Cmode: toggles smart indenting, parenthesis matching, C programming mode
  10. O) Overwrite: toggles between overwriting and inserting
  11. W) Wrap: toggles on/off automatic line wrapping (usually for a text mode)
  12. X) Exact: toggles search case sensitivity
  13. S) Scroll: toggles the vertical scrolling method
  14. I) cIndent: toggles the C indentation method
  15. T) Tab: toggles the use of hard tabs
  16. P) regular exPressions: searches use regular expressions
  17. B) Binary: toggles displaying as a binary
  18.  
  19.     CURSOR MOTION  (Arrow keys are Right Left Up Down)
  20. [Right]==[^F] forward            [Left]==[^B] backward
  21. [Up]==[^P] up                [Down]==[^N] down
  22. [PageUp]==[Alt V] page up        [PageDown]==[^V] page down
  23. [Home]==[^A] front of line        [End]==[^E] end of line
  24. [HomeHome] top of page            [EndEnd] bottom of page
  25. [HomeHomeHome]==[Alt <] top        [EndEndEnd]==[Alt >] end
  26. [^Right]==[Alt F] forward word        [^Left]==[Alt B] backward word
  27. [^Up] up paragraph            [^Down] down paragraph
  28. [Alt G (number)] goto linenumber    [^X .] exchange cursor with mark
  29.  
  30.     DELETING AND COPYING
  31. [^T] transpose characters        [Alt C] capitalize word
  32. [Alt L] lowercase word            [Alt U] uppercase word
  33. [Backspace] delete left            [Del]==[^D] delete right
  34. [^Backspace] delete word left        [Alt Backspace] copy word left
  35. [^Del]==[Alt D] delete word right    [Alt Del] copy word right
  36. [Alt ,] delete whitespace right        [Alt .] delete whitespace
  37.  
  38. [Alt Spacebar]==[^Spacebar] sets mark at the cursor position,
  39. [^K] kill to end of line, store in kill buffer
  40. [Alt K] kill line, store in kill buffer
  41. [^Y] yank a copy of the kill buffer to the current cursor position
  42. [Alt Y] yankPop; cycle through the ring of kill buffers
  43. [^W] wipes from last mark to cursor, stores in kill buffer
  44. [Alt W] writes from last mark to cursor into kill buffer
  45.     
  46. The general procedure for copying or moving text is:
  47. 1) Mark the beginning of a block using [Alt Spacebar]
  48. 2) Move the cursor to the end of the block.
  49. 3) Delete [^W] or copy [Alt W] into the kill buffer.
  50. 4) Move the cursor to the new location and [^Y] yank it back.
  51.  
  52.     SEARCHING AND REPLACING
  53. [Alt ^F] forward to matching )]}    [Alt ^B] backward to matching {[(
  54. [^S] isearch forward            [Alt S] repeat last search
  55. [^R] reverse isearch            [Alt R] repeat last reverse search
  56. [Alt ^R] jumbo replace dialog        [Alt ^S] jumbo search dialog
  57. [Alt T] tag search (uses "tags" file)    [Alt Q] function search
  58. During an isearch: [bacspace][^-] undo, [^S][^R] repeat, [^G][ESCAPE] exit
  59. [^Y] yanks, [Alt Y] yankPops, [Alt /] wordContinuation
  60. In Exact Mode searches are case sensitive
  61. Otherwise searches are lower case insensitive, upper case sensitive
  62.  
  63.     FILE CONTROL
  64. [^X ^F] open a newfile            [^X R] revert to save
  65. [^X K] kill this file            [^X ^W] rename and write this file
  66. [^X ^S] save this file            [^X S] save all modified files
  67. [^X ^C] exit querying changed files    [Alt Z] exit saving changed files
  68. [^X I] insert a file at the cursor
  69.  
  70. In File Dialogs, the "*" wildcard is legal in file and directory names... 
  71. The "**" wildcard matches directory names "." and all subdirectories
  72. [Spacebar] or [TAB] in a file/buffer Dialogs continues the 
  73. path/file/buffer name, it may bring up a file list box...
  74.  
  75.     WINDOW CONTROL
  76. [^L] center the cursorline        [^Insert]==[^X O] other window
  77. [Insert]==[^X X] next buffer        [Shift Insert] last buffer
  78. [^X B] goto the queried buffer        [^X ^F] goto/open the queried file
  79. [^X 1] make one fullsized window    [^X 0] remove this window
  80. [^X 2] split window horizontally    [^X 5] split window vertically
  81. [Alt endkey] grow window right        [Alt homekey] shrink window left
  82. [Alt pagedownkey] grow window down    [Alt pageupkey] shrink window up
  83. [Alt (arrow key)] move window
  84. [Alt J] bookMark >> P=push Space=pop 123456789=goto
  85. [Alt +] push window configuration    [Alt =] pop window configuration
  86.  
  87.     LINE WRAPPING
  88. [Alt P] reformat the current paragraph/comment (in Cmode)
  89. [^TAB] retab the line 
  90. [Alt TAB] set wrap index and (multiple sized) tabs, e.g.: tabs=2 8 4
  91.  
  92.     UNDO
  93. [^-] undo                [Alt -] redo
  94.  
  95.     MACROS
  96. [Alt M] load a macro (store keys)   [Alt ^M] save all current macros
  97. [ESCAPE (number) (key)] execute (key) the given (number) of times
  98.  
  99.     HELP
  100. [^H H] bring up this help        [^H B] describe keyBindings
  101. [^H F] describe Functions
  102.  
  103.     SHELLS
  104. [^Z] begins a dos shell
  105. [^X N] runs a dos command and captures the output...
  106. The default command is gmake, which is a make facility...
  107. [Alt N] go to next error...
  108. Used repeatedly after [^X N], we parse the output of [^X N]
  109. and go to the file and line number of the next error.
  110.  
  111.     MISCELANEOUS
  112. [^G] is the all purpose abort.
  113.     
  114. [^Q (any key)] quoted insert, inserts the key as a literal...
  115. in Binary mode you can insert hex
  116.     
  117. [Alt I] information,    [D]-Date, [T]-Time, [P]-Pathname, [A]-Absolutepath,
  118.             [+] count++, [-] count--, [=] count, [0-9] set count
  119.  
  120. [^X D] diff Directories
  121. [^X E] compares 2 windows (equal), does a diff from the cursors
  122. Exact Mode diffs are white space sensitive, else white insensitive.
  123.  
  124. [Alt X] execute named command (space does commandContinuation)
  125.  
  126. [Alt /] word continuation
  127.  
  128. Care and Feeding of M:
  129.     1) Put M.EXE on your path
  130.     2) Set TMP to a directory for temp files (in the autoexec):
  131.     set TMP=c:\temp        // Periodically empty this directory.
  132.     3) Set HOME to a directory, the macrofile and startfile live here
  133.     set HOME=c:\home
  134.     4) Optionally set SWAPDIRS as a path variable to use for swap files
  135.     set SWAPDIRS=d:\temp;c:\temp;j:\temp
  136.     m will swap to d:\temp until it is full than to c:\temp etc.
  137.     5) Optionally set the environment variable M (in the autoexec):
  138.     set M= a2-+*/()[]{} -i -s -cXXXX -t4 -p -wXXX
  139.     -a1,a2    set alphabets,    a1=wordChars,    default is A-Za-z0-9_
  140.                 a2=symbolChars,    no default
  141.     -c  XXXX is a 4-digit hex number specifying colors
  142.         Each digit controls a letter or a background color
  143.     -h  hard tabs, (indentation is a mix of spaces and tab chars)
  144.     -i  toggle cIndent Mode, same as [^X M I]
  145.     -l  load file lines as text always... (don't auto sense binary)
  146.     -p  paid your money, (don't show startup message)
  147.     -s  toggle the Scroll Mode, see [^X M S]
  148.     -t,-tc  set the tabs... -tc2 will set cmode tabs to 2
  149.     -v  attempt checkout of read only files
  150.     -w  set wrap column, XXX is a decimal number
  151.     6) Optionally set up an M.CFG file
  152.