| Action | Vim | Nano | Emacs |
|---|---|---|---|
| Open File | :e filename |
nano filename |
C-x C-f |
| Save File | :w |
Ctrl+O |
C-x C-s |
| Save and Exit | :wq |
Ctrl+O, Ctrl+X |
C-x C-s, C-x C-c |
| Exit Without Saving | :q! |
Ctrl+X, Ctrl+C |
C-x C-c |
| Move Cursor Up | k |
Up Arrow |
C-p |
| Move Cursor Down | j |
Down Arrow |
C-n |
| Move Cursor Left | h |
Left Arrow |
C-b |
| Move Cursor Right | l |
Right Arrow |
C-f |
| Move to Beginning of Line | 0 |
Ctrl+A |
C-a |
| Move to End of Line | $ |
Ctrl+E |
C-e |
| Delete to End of Line | D |
Ctrl+K |
C-k |
| Cut Line | dd |
Ctrl+K |
C-k |
| Paste | p |
Ctrl+U |
C-y |
| Undo | u |
Alt+U |
C-/ |
| Redo | Ctrl+R |
Alt+E |
C-g C-/ |