home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
me34exe.zip
/
doc
/
qref.doc
< prev
next >
Wrap
Text File
|
1995-01-14
|
4KB
|
132 lines
ME Quick Reference
'C-' is the control key, 'M-' is the escape or meta key
A BLOCK is all the lines between dot and mark (inclusive)
Characters Words
---------- -----
C-b Previous character M-b Previous word
C-f Next character M-f Next word
C-d Delete next character M-d Delete next word
C-h Backspace M-C-h Delete previous word
C-q C-^ Quote next typed character M-l Lowercase word
C-t Transpose characters M-u Uppercase word
M-c Capitalize word
Lines
-----
C-a Beginning of line
C-e End of line
C-p Previous line
C-n Next line
C-k Delete till newline; if just newline, delete it
C-j Insert newline, match indent of previous line
C-o Open a blank line at dot
M-g Move cursor to a given line
Windows
-------
C-xC-n Scroll window up one line
C-xC-p Scroll window down one line
C-v Next page
M-v Previous page
M-! Move current line to top of window
C-x0 Delete current window
C-x1 Delete other windows
C-x2 Split this window
C-x^ Enlarge this window one line
C-xC-z Shrink this window one line
C-xp Previous window
C-xo Next window
Buffers (Use space bar for buffer name completion, "?" for list)
-------
C-y Insert the contents of the cut buffer at dot
C-xC-o Switch to an existing buffer
C-xb Switch to a buffer, creating it if it does not exist
C-xk Delete a buffer
M-< Beginning of buffer. M-> End of buffer
C-xC-b Show stats on all buffers. C-uC-xC-b for buffer menu
C-x= Show stats on current buffer
F-2 Next buffer
C-xC-q Toggle read only status of buffer
Regions (The text between the dot and mark)
-------
C-w Delete region and save in the cut buffer
M-w Copy region to the cut buffer
C-xC-l Convert region to lower case
C-xC-u Convert region to upper case
C-xC-i Indent block right or left
C-xg Insert register. C-xx: Copy region to register, C-xr: Copy rectangle
Marks
-----
C-@ M-SPACE Set mark
C-xC-x Exchange dot and mark
M-C-p Save current position in mark ring (ring holds 4 marks)
M-p Goto next mark in mark ring
Files
-----
C-xC-v Read named file, creating a buffer to hold it
C-xC-r Read named file into current buffer, erasing old contents
C-xi Insert named file into buffer at dot
C-xC-s Write the current buffer to its associated file
C-xC-w Write the current buffer to named file
C-xf Read next file on command line, creating a buffer to hold it
Search and Replace
------ --- -------
C-s C-\ Search forward
C-r Search backward
M-q M-% Query search and replace:
hit "y" to change and continue
hit "n" to not change and continue
hit "!" to change all without asking
hit C-G to abort.
M-C-s Regular expression search forward
M-C-q Regular expression query search and replace
Macros
------
C-x( Start remembering keystrokes
C-x) Stop remembering keystrokes
C-xe Replay remembered keystrokes
Misc
----
C-xu C-_ Undo
C-xC-c C-c Exit ME
C-g Terminate command
C-l Redraw screen, C-uC-l to center the dot
C-u Repeat count for the next command (default = 4) eg "C-U nnn command"
C-x! Execute a shell command (eg "C-X! ls")
C-z Fork a shell, returning to ME with "exit"
M-? Give a keyword and get a list of commands that have that word in them
F-6 Show matching () or {}
C-x/ Save buffer and point in a register. C-xj to jump to point.
M-/ Look for another word to replace the word at the cursor
c-mode Turned on when editing a buffer with extension of .h or .c
------
M-j Format block as a C comment
C-uM-j Format block as a C block comment
M-; Toggle block comment mode. Useful for reediting a block comment
text-mode Turned on when editing a buffer with extension of .doc or .txt
---------
word wrap column = 72
Enter Newline and match the indent of the previous line
M-j Format block ragged right
M-s Center the line the cursor is on
underline-line
M-x commands (use M-x <command-name> to run)
-- -------- use space bar for command completion, "?" for list
bind-to-key Run a command when key is pressed.
describe-bindings Find out all the commands.
describe-key Find out which command is bound to a key.
help Attempt to provide some help.
rectangle commands: clear-rectangle, copy-rectangle, cut-rectangle,
erase-rectangle
spell-buffer, spell-region
sysvars Look at or set system variables.