EMACS MODE (DEFAULT)
Always in insert mode. Type to insert text. Use Ctrl/Alt shortcuts for commands.
Example: Ctrl+A (beginning), Ctrl+E (end), Alt+B (back word)
VI INSERT MODE (VIINS)
Type to insert text. Press Esc to switch to command mode.
Example: Type "SELECT" → Esc → Now in command mode
VI COMMAND MODE (VICMD)
Navigate and edit with single keys. Press i to insert, a to append.
Example: h (left), l (right), w (word forward), dd (delete line)
HOW KEYMAPS WORK ACROSS MODES
Alt+R (History Search)
Works in ALL modes - EMACS, VIINS, VICMD
Alt+U (Uppercase Word)
Works in ALL modes - converts "select" → "SELECT"
Ctrl+E
VIINS only - switches to EMACS mode
QUICK REFERENCE
Most SQLcl keymaps (Alt+R, Alt+N, Alt+A, Alt+E, Alt+U, Alt+C, etc.) work universally across all modes.
You don't need to think about modes unless you're using Vi keybindings.