jmglov.net -- DocumentationVi for Emacs Users |
||||||||||||||||||||||||||||||||||||||||||
|
The purpose of this document is to provide a quick Rosetta Stone-type reference for Emacs users who are using Vi[m] (probably against their will!). The below tables use standard emacs conventions for describing keystrokes, C being the Control key (usually Ctrl), M being the Meta key (usually Alt), and - indication a combination. Therefore, C-x C-s mean that you hold down the Control key while pressing the 'x' key, then hold down the Control key while pressing the 's' key. Please refer to the GNU emacs manual for more information: http://www.gnu.org/manual/emacs-21.2/html_node/emacs_13.html#SEC13 | ||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||
Movement | ||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||
File manipulations | ||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||
Case | ||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||
Footnotes | ||||||||||||||||||||||||||||||||||||||||||
|
[1] The emacs C-x c command does prompt you to save if you have any dirty buffers. Likewise, vi's :q command will save you from yourself by not allowing you to exit with a dirty buffer. If you really want to save and discard changes, you must use the :q! command. vi provides a shortcut for "save and quit" that emacs does not, however. Use the :x command to save your changes and then quit vi. |