Vi editor has three main modes: command mode (default, for navigation and commands), insert/input mode (for typing text), and last line mode (also called ex mode, entered with : for complex commands). All three modes listed are valid vi editor modes.