| Basics | |
| :e filename | Open filename for edition |
| :w | Save file |
| :q | Exit Vim |
| :w! | Exit Vim without saving |
| Search | |
| Replace | |
| Case | |
| Read/Write files | |
| File explorer | |
| Interact with Unix | |
| Alignment | |
| Tabs | |
| Window splitting | |
| Auto-completion | |
| Mark | |
| Abbreviations | |
| Text indent | |
| :set autoindent | Turn on auto-indent |
| :set smartindent | Turn on intelligent aotu-indent |
| :set shiftwidth=4 | Define 4 spaces as indent size |
| ctrl-t, ctrl-d | Indent/un-indent in insert mode |
| >> | Indent |
| << | Un-indent |
| Syntax highlighting |