| Automatic file name completion |
Esc Esc |
Esc \ |
| Begin command line editing |
Ctrl-P Esc < |
Esc k Esc - |
| Previous line/command |
Ctrl-P |
k - |
| Next line/command |
Ctrl-N |
j + |
| First line/command in history |
Esc < |
|
| Last line/command in history |
Esc > |
|
| Search backward in history |
|
/string
|
| Search forward in history |
|
?string
|
| Repeat search in same direction |
|
n |
| Repeat search in reverse direction |
|
N |
| Execute and advance to next command in history |
Ctrl-O |
|
| Clear entire line |
Ctrl-U |
|
| Backwards one character |
Ctrl-B |
h Backspace |
| Forward one character |
Ctrl-F |
l |
| Backwards to first character of word |
Esc b |
b |
| Forward to first character of word |
|
w |
| Forward to last character of word |
|
e |
| Forward to end of word |
Esc f |
|
| Beginning of line |
Ctrl-A |
0 (zero) |
| First non-blank character in line |
|
^ |
| End of line |
Ctrl-E |
$ |
| Column n
|
|
n| ("or" bar) |
| Find next character in line |
|
fchar
|
| Repeat find in same direction |
|
; |
| Repeat find in reverse direction |
|
, |
| Delete character at cursor |
Ctrl-D |
x |
| Delete character before cursor |
Backspace |
X |
| Delete n characters |
|
nx |
| Delete n characters before cursor |
|
nX |
| Delete word before cursor |
Esc Backspace |
Ctrl-W |
| Delete from cursor to end of line |
Ctrl-K |
D |
| Delete to end of word |
Esc d |
|
| Replace current character |
|
r |
| Replace multiple character |
|
R |
| Insert before current character |
|
i |
| Insert after current character |
|
a |
| Insert at beginning of line |
|
I |
| Insert at end of line |
|
A |
| Repeat most recent command |
|
. |
| Undo last change |
|
u |
| Undo all changes |
|
U |
| Cancel emacs command (cancels Esc) |
Ctrl-G |
|
| Cancel UNIX command; new prompt |
Ctrl-C |
|
| Display version temporarily |
Ctrl-V |
|
Transpose two characters emacs: transpose current character with following character gmacs: transpose previous two characters |
Ctrl-T |
|