vi (visual editor) is the default command for the UNIX operating system.
| Command | Description |
| h | move cursor left one character |
| j | move cursor down one line |
| k | move cursor up one line |
| l | move cursor right one character |
| $ | move cursor to the end of current line |
| w | move cursor to the beginning of the next word |
| b | move cursor back to the beginning of preceding word |
| 1G | move cursor to the frist line in the file |
| nG | move cursor to line n |
| G | move cursor to the line n |
| :u | undo |
| :q | quite |
| :wq | save and quite |
| :q! | quite without saving |
| i | insert text before the cursor |
| I | Insert text at the beginning of the current line |
| a | append text after the cursor |
| A | append text to the end of the current line |
| o | open and put text in a new line |
| O | open and put text in a new line above current line |