Cmd. /vim
Toggle Vim mode for the Codex TUI composer.
Key takeaways
/vimswitches the TUI composer between default editing and Vim normal/insert behavior.- Use it for Vim-style input while drafting longer prompts; for shortcut conflicts use
/keymapinstead. - Evaluate
tui.vim_mode_default = truebefore rolling Vim default mode out to a team. - Confirm that paired or training sessions will not be confused by Vim default mode.
Original Command Declaration
/vimOfficial Summary
/vim switches the Codex TUI composer between default editing and Vim normal/insert behavior.
Usage
/vimGood Examples
- Use Vim normal and insert modes while drafting longer prompts.
- Test Vim composer behavior before setting it as the default for new sessions.
Similar 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 |
Use Cases
- Standardizing terminal-first editing workflows.
- Evaluating
tui.vim_mode_default = truebefore team rollout.
Cautions
/vimis now listed in the official slash commands documentation.- Confirm that paired or training sessions will not be confused by Vim default mode.
Release Basis
- Judgment: official docs listing
- First evidence version:
rust-v0.129.0changelog plus official slash commands documentation - Date (UTC): verified 2026-05-21
- Release link: https://developers.openai.com/codex/changelog
Sources
- Codex slash commands: https://developers.openai.com/codex/cli/slash-commands
- Codex changelog: https://developers.openai.com/codex/changelog