| 1. General |
| Cancel | [Esc] |
| Quit and write | :x |
| Quit without write | :q! |
| Write only | :w |
| Shell command | :! |
| 2. Cursor and Screen |
| Screen Forward | Ctrl + f |
| Screen Backward | Ctrl + b |
| Refresh Screen | Ctrl + l |
| Go to line number | :n (first '1', last '$') |
| Search forward | /pattern |
| Search backward | ?pattern |
| Repeat last search | n |
|
| 3. Edit |
| Delete characters | ndl |
| Delete words | ndw |
| Delete lines | ndd |
| Join two lines | J |
| Copy lines to buffer | nyy |
| Paste from buffer | p |
| 4. String Replacement |
| Single line | :s/this/that/g |
| Lines a-b | :a,bs/this/that/g |
| Whole text | :%s/this/that/g |
| 5. Others |
| Show options | :set |
| Help | :h |
|