vi editing mode

Resolved 💬 12 comments Opened Aug 17, 2025 by zzJinux Closed Dec 23, 2025
💡 Likely answer: A maintainer (sayan-oai, contributor) responded on this thread — see the highlighted reply below.

What feature would you like to see?

https://docs.anthropic.com/en/docs/claude-code/interactive-mode#vim-mode

Are you interested in implementing this feature?

Yes

Additional information

_No response_

View original on GitHub ↗

12 Comments

aehlke · 8 months ago

Alternatively, just allow opening the prompt in $EDITOR

sdistefano · 8 months ago

+1

drice · 8 months ago

Please vote for this here

aehlke · 7 months ago
Please vote for this here

etraut-openai has now directed people back here to vote

PaulRBerg · 7 months ago

Claude Code users are able to hit ⌃+G and open the prompt in vim, edit it, and then after closing it, the new prompt will be entered into the normal chat.

Codex should work exactly in the same way. It's the best UX

jmpaz · 7 months ago
Claude Code users are able to hit ⌃+G and open the prompt in vim, edit it, and then after closing it, the new prompt will be entered into the normal chat. Codex should work exactly in the same way. It's the best UX

This feature has been implemented in this open PR: https://github.com/openai/codex/pull/7606

I agree / I find this approach to be a cleaner one, as it allows users to edit with their [personally-configured] editor of choice while requiring less maintenance overhead from the team.

aehlke · 7 months ago
> Claude Code users are able to hit ⌃+G and open the prompt in vim, edit it, and then after closing it, the new prompt will be entered into the normal chat. > Codex should work exactly in the same way. It's the best UX This feature has been implemented in this open PR: #7606 I agree / I find this approach to be a cleaner one, as it allows users to edit with their [personally-configured] editor of choice while requiring less maintenance overhead from the team.

FYI they do not accept PRs here. But others may merge it into their own forks...

sayan-oai contributor · 7 months ago

Added in #7606, will be available in the next release.

tulbox · 6 months ago
Added in #7606, will be available in the next release.

If you're like me and was wondering what the "next release" would be, as of 2026-01-05 we are still on v0.77.0 and the next release, which is still in pre-release, is v0.78.0.

Thanks for this implementation. Looking forward to being able to quickly ctrl-g my way to vim goodness.

tulbox · 6 months ago

And as of two hours ago, v0.78.0 is live! Wonderful.

PaulRBerg · 6 months ago

CTRL+g is working flawlessly

Thanks for implementing this!

g-i-o-r-g-i-o · 2 months ago

in Codex CLI, add this to

~/.codex/config.toml:

[tui]
vim_mode_default = true

for testing only:

codex -c 'tui.vim_mode_default=true'