home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / me34exe.zip / doc / qref.doc < prev    next >
Text File  |  1995-01-14  |  4KB  |  132 lines

  1.              ME  Quick Reference
  2. 'C-' is the control key, 'M-' is the escape or meta key
  3. A BLOCK is all the lines between dot and mark (inclusive)
  4. Characters                Words
  5. ----------                -----
  6. C-b    Previous character        M-b    Previous word
  7. C-f    Next character            M-f    Next word
  8. C-d    Delete next character        M-d    Delete next word
  9. C-h    Backspace            M-C-h    Delete previous word
  10. C-q C-^    Quote next typed character    M-l     Lowercase word
  11. C-t     Transpose characters        M-u     Uppercase word
  12.                     M-c     Capitalize word
  13. Lines
  14. -----
  15. C-a    Beginning of line
  16. C-e    End of line
  17. C-p    Previous line
  18. C-n    Next line
  19. C-k    Delete till newline; if just newline, delete it
  20. C-j    Insert newline, match indent of previous line
  21. C-o    Open a blank line at dot
  22. M-g    Move cursor to a given line
  23.  
  24. Windows
  25. -------
  26. C-xC-n    Scroll window up one line
  27. C-xC-p    Scroll window down one line
  28. C-v    Next page
  29. M-v    Previous page
  30. M-!    Move current line to top of window
  31. C-x0    Delete current window
  32. C-x1    Delete other windows
  33. C-x2    Split this window
  34. C-x^    Enlarge this window one line
  35. C-xC-z  Shrink this window one line
  36. C-xp    Previous window
  37. C-xo    Next window
  38.  
  39. Buffers    (Use space bar for buffer name completion, "?" for list)
  40. -------
  41. C-y    Insert the contents of the cut buffer at dot
  42. C-xC-o  Switch to an existing buffer
  43. C-xb    Switch to a buffer, creating it if it does not exist
  44. C-xk    Delete a buffer
  45. M-<    Beginning of buffer.  M-> End of buffer
  46. C-xC-b  Show stats on all buffers.  C-uC-xC-b for buffer menu
  47. C-x=    Show stats on current buffer
  48. F-2     Next buffer
  49. C-xC-q  Toggle read only status of buffer
  50.  
  51. Regions    (The text between the dot and mark)
  52. -------
  53. C-w    Delete region and save in the cut buffer
  54. M-w    Copy region to the cut buffer
  55. C-xC-l  Convert region to lower case
  56. C-xC-u  Convert region to upper case
  57. C-xC-i    Indent block right or left
  58. C-xg    Insert register.  C-xx: Copy region to register, C-xr: Copy rectangle
  59.  
  60. Marks
  61. -----
  62. C-@ M-SPACE  Set mark
  63. C-xC-x    Exchange dot and mark
  64. M-C-p   Save current position in mark ring (ring holds 4 marks)
  65. M-p     Goto next mark in mark ring
  66.  
  67. Files
  68. -----
  69. C-xC-v    Read named file, creating a buffer to hold it
  70. C-xC-r    Read named file into current buffer, erasing old contents
  71. C-xi    Insert named file into buffer at dot
  72. C-xC-s    Write the current buffer to its associated file
  73. C-xC-w    Write the current buffer to named file
  74. C-xf    Read next file on command line, creating a buffer to hold it
  75.  
  76. Search and Replace
  77. ------ --- -------
  78. C-s C-\ Search forward
  79. C-r     Search backward
  80. M-q M-% Query search and replace:
  81.       hit "y" to change and continue
  82.       hit "n" to not change and continue
  83.       hit "!" to change all without asking
  84.       hit C-G to abort.
  85. M-C-s   Regular expression search forward
  86. M-C-q   Regular expression query search and replace
  87.  
  88. Macros
  89. ------
  90. C-x(    Start remembering keystrokes
  91. C-x)    Stop  remembering keystrokes
  92. C-xe    Replay remembered keystrokes
  93.  
  94. Misc
  95. ----
  96. C-xu C-_   Undo
  97. C-xC-c C-c Exit ME
  98. C-g    Terminate command
  99. C-l    Redraw screen, C-uC-l to center the dot
  100. C-u    Repeat count for the next command (default = 4) eg "C-U nnn command"
  101. C-x!    Execute a shell command (eg "C-X! ls")
  102. C-z    Fork a shell, returning to ME with "exit"
  103. M-?    Give a keyword and get a list of commands that have that word in them
  104. F-6    Show matching () or {}
  105. C-x/    Save buffer and point in a register.  C-xj to jump to point.
  106. M-/    Look for another word to replace the word at the cursor
  107.  
  108. c-mode     Turned on when editing a buffer with extension of .h or .c
  109. ------
  110. M-j    Format block as a C comment
  111. C-uM-j    Format block as a C block comment
  112. M-;    Toggle block comment mode.  Useful for reediting a block comment
  113.  
  114. text-mode Turned on when editing a buffer with extension of .doc or .txt
  115. ---------
  116. word wrap column = 72
  117. Enter    Newline and match the indent of the previous line
  118. M-j    Format block ragged right
  119. M-s    Center the line the cursor is on
  120. underline-line
  121.  
  122. M-x commands    (use M-x <command-name> to run)
  123. -- --------    use space bar for command completion, "?" for list
  124. bind-to-key        Run a command when key is pressed.
  125. describe-bindings    Find out all the commands.
  126. describe-key        Find out which command is bound to a key.
  127. help            Attempt to provide some help.
  128. rectangle commands:     clear-rectangle, copy-rectangle, cut-rectangle,
  129.              erase-rectangle
  130. spell-buffer, spell-region
  131. sysvars        Look at or set system variables.
  132.