EMACS EDITOR
There is only one mode, not two separate modes as in "vi". You are always
in insert mode and have to activate special commands, like delete a character,
by a special key sequence. You can rub out characters with the delete key
and move around using the arrow keys.
LEGEND: ^a means CONTROL-a (hold down CONTROL while pressing a)
ESC a means press ESCape key first, then the a key.
Control functions;
^x^c Quit (it will prompt you if you have made changes)
^x^s Save, don't quit
Movement within the file
ESC < Go to beginning of file
ESC > Go to end of file
^a place cursor at beginning of line
^e place cursor at end of line
Searching:
^s search forward (type search string, then press ESC)
^r search backward
Deleting
^d delete current character under the cursor
DELETE delete previous character
ESC d delele next word
Undoing and misc
^x u undo
^g abort current command
ESC x follow this with the full command name
^l redraw screen
Split screen
^x 2 make 2 windows
^x 1 reduce back to 1 window
^x o switch to other window
^x b switch buffers
^x ^b list buffers
Cutting and Pasting
^@ set mark point
^w cut from mark point to the current point, put into kill buffer
ESC w copy from mark point to the current point, put into kill buffer
^y yank from kill buffer
HELP
^h b describe key bindings
^h t bring up the emacs tutorial
ESCAPE TO UNIX
ESC ! allows you to escape to a shell
ESC % query replace, type old, new and then y or n as it shows you the
words, or type ! to change all changes automatically without query;
stop the query with ^G