Cmd. /vim
Toggle Vim mode for the Codex TUI composer.
Key takeaways
- Toggle Vim mode for the Codex TUI composer.
- Check the input surface and availability before using the examples below.
Purpose
Toggle Vim mode for the Codex TUI composer.
/vimAvailability
| Field | Value |
|---|---|
| Input surface | Running CLI prompt |
| Kind | Built-in |
| Status | Current reference |
| Aliases | — |
| Documented minimum | Not specified |
| Reviewed against | 2026-09-22 · Codex CLI 0.155.1 |
The installed command menu and account or organization settings determine availability.
Examples
/vimWhen to use it
- Use Vim normal and insert modes while drafting longer prompts.
- Test Vim composer behavior before setting it as the default for new sessions.
Choosing related commands
| Command | Difference | Choose It When |
|---|---|---|
/vim | Changes composer editing mode | You prefer Vim-style input |
/keymap | Remaps shortcuts | Specific keys conflict with your terminal or team defaults |
/theme | Changes syntax colors | The issue is display, not input behavior |
Effects and persistence
Toggles Vim editing behavior for terminal input.
/vim switches the Codex TUI composer between default editing and Vim normal/insert behavior.
Cautions
Review tui.vim_mode_default = true when making Vim the default editing mode. Inspect shortcut conflicts with /keymap.
/vimis now listed in the official slash commands documentation.- Confirm that paired or training sessions will not be confused by Vim default mode.
Official sources
Complete command list · Verification scope · History for this command