Enter should insert a newline in Vim Insert mode
Open 💬 1 comment Opened Aug 8, 2026 by adamrecsko
What variant of Codex are you using?
CLI
What feature would you like to see?
When Vim mode is enabled in the Codex CLI, I’d like Enter to behave as a normal Enter key while I’m in Vim Insert mode.
Expected behavior
- In Vim Insert mode, pressing
Entershould insert a new line. - Outside of Insert mode, the existing behavior for submitting the prompt can remain unchanged.
Current behavior
Pressing Enter while in Vim Insert mode sends the message to the agent instead of inserting a newline.
Why this would help
This would make Vim mode behave more consistently with normal Vim editing, where Enter in Insert mode creates a new line.
It would also make editing multiline prompts much more natural and reduce accidental submissions while typing.
Additional information
_No response_
1 Comment
yeah, this current behavior isn't very vim. yuck.
in the meantime i am using tmux and vim (with the vim slime plugin). then in a pane below codex i open vim and type in the buffer then i map a keystroke to
:SlimeSendand it goes into codex stdin