version 1.53, 2011/08/01 12:15:23 |
version 1.54, 2011/08/31 14:34:28 |
|
|
.Sh DEFAULT KEY BINDINGS |
.Sh DEFAULT KEY BINDINGS |
Normal editing commands are very similar to GNU Emacs. |
Normal editing commands are very similar to GNU Emacs. |
In the following examples, C-x means Control-x, and M-x means Meta-x, |
In the following examples, C-x means Control-x, and M-x means Meta-x, |
where the Meta key may be either a special key on your keyboard |
where the Meta key may be either a special key on the keyboard |
or the ALT key; otherwise ESC followed by the key X works as well. |
or the ALT key; otherwise ESC followed by the key X works as well. |
.Pp |
.Pp |
.Bl -tag -width xxxxxxxxxx -compact |
.Bl -tag -width xxxxxxxxxx -compact |
|
|
Justify a paragraph, wrapping text at the current fill column. |
Justify a paragraph, wrapping text at the current fill column. |
.It find-file |
.It find-file |
Select a file for editing. |
Select a file for editing. |
First check if you can find the file |
First check if the file can be found |
in another buffer; if you can find it, just switch to the buffer. |
in another buffer; if it is there, just switch to that buffer. |
If you cannot find the file, create a new buffer, read in the |
If the file cannot be found, create a new buffer, read in the |
file from disk, and switch to the new buffer. |
file from disk, and switch to the new buffer. |
.It find-file-read-only |
.It find-file-read-only |
Same as find-file, except the new buffer is set to read-only. |
Same as find-file, except the new buffer is set to read-only. |
|
|
upper case. |
upper case. |
.It upcase-word |
.It upcase-word |
Move the cursor forward by the specified number of words. |
Move the cursor forward by the specified number of words. |
As you move, convert any characters to upper case. |
As it moves, convert any characters to upper case. |
.It what-cursor-position |
.It what-cursor-position |
Display a bunch of useful information about the current location of |
Display a bunch of useful information about the current location of |
dot. |
dot. |
|
|
.Pa .mg-TERM . |
.Pa .mg-TERM . |
Here, |
Here, |
.Ev TERM |
.Ev TERM |
represents the name of your terminal type; e.g., if your terminal type |
represents the name of the terminal type; e.g., if the terminal type |
is set to |
is set to |
.Dq vt100 , |
.Dq vt100 , |
.Nm |
.Nm |
|
|
.Xr vi 1 |
.Xr vi 1 |
.Sh CAVEATS |
.Sh CAVEATS |
Since it is written completely in C, there is currently no |
Since it is written completely in C, there is currently no |
language in which you can write extensions; |
language in which extensions can be written; |
however, you can rebind keys and change certain parameters |
however, keys can be rebound and certain parameters can be changed |
in startup files. |
in startup files. |
.Pp |
.Pp |
In order to use 8-bit characters (such as German umlauts), the Meta key |
In order to use 8-bit characters (such as German umlauts), the Meta key |