You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
I would like to have the option to use the VIM keyboard layout to write the message. It’s really useful when working with long prompts. And this functionality already have the popular projects Claude Code and Gemini Cli.
Reacted by Nikita Rabykin, JohannesHome, Sander, Warnex04, lmiketa, Benny Powers, Max Netterberg, Love, Cyprien, shellshock.dnull and 35 more
Reacted by Gabriele Baldessari, Benny Powers, Samuel Lichtenheld, Marco Mayer, Hornet, mineralka, Matt Mirus, Eduardo Pereira and Favour Afolayan
Why not just use the command palette and open in editor. I do:
start writing a prompt in the default box
if I see the prompt will be longer and I'd like to use my default editor (nvim), I do (open command palette) -> start typing editor and open the prompt in default editor
There's also a keybinding for editor command, I just never got used to it.
@mekedron that's weird. It works for me...my setup: Mac, Ghostty, NeoVim (default editor), OpenCode, TMUX
Note: I'm not part of the dev team, just giving my two cents (and the tmux thing is probably irrelevant, but adds additional complexity that could possibly break this -- and it doesn't).
My understanding is it should work like this (and that's what I've observed in my setup):
there's a TUI session (and a prompt)
when you select editor and open the prompt in the editor, it's exported as <timestamp>.md file and stored in a central location..something like /private/var/folders/..../.md` (on Mac)
you edit that file in the editor and when you save and exit (:wq) the TUI pulls the .md file and fills the prompt
So yeah...take this and debug or ask your favourite LLM for help
@ikusteu ah, you're right! I've just checked with Vim and it works fine. Last time I tried with Zed (rust-based GUI code editor), and it didn't work, but when I switched my EDITOR=vim it worked alright! Thanks!
I made a plugin you can try, it's not got many features and i'm not sure I will be able to maintain it much but it's got enough of what I want from VIM for me:
@mekedron that's weird. It works for me...my setup: Mac, Ghostty, NeoVim (default editor), OpenCode, TMUX
Note: I'm not part of the dev team, just giving my two cents (and the tmux thing is probably irrelevant, but adds additional complexity that could possibly break this -- and it doesn't).
My understanding is it should work like this (and that's what I've observed in my setup):
there's a TUI session (and a prompt)
when you select editor and open the prompt in the editor, it's exported as <timestamp>.md file and stored in a central location..something like /private/var/folders/..../.md` (on Mac)
you edit that file in the editor and when you save and exit (:wq) the TUI pulls the .md file and fills the prompt
So yeah...take this and debug or ask your favourite LLM for help
but if i save the words by :wq,then i has no chance to edit them again,right?this is a big problem for me,i think.
Activity
github-actions commentedon Jan 29, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
Also, for keybind-related issues, please check our pinned keybinds documentation: #4997
ikusteu commentedon Jan 29, 2026
Why not just use the command palette and open in editor. I do:
editorand open the prompt in default editorThere's also a keybinding for editor command, I just never got used to it.
Stewart86 commentedon Jan 29, 2026
did you just blindly check
I have verified this feature I'm about to request hasn't been suggested before.?mekedron commentedon Feb 16, 2026
@ikusteu yeah, actually editor command works, but unfortunately it doesn't update the edited prompt to the opencode's tui text input field
ikusteu commentedon Feb 16, 2026
@mekedron that's weird. It works for me...my setup: Mac, Ghostty, NeoVim (default editor), OpenCode, TMUX
Note: I'm not part of the dev team, just giving my two cents (and the tmux thing is probably irrelevant, but adds additional complexity that could possibly break this -- and it doesn't).
My understanding is it should work like this (and that's what I've observed in my setup):
<timestamp>.mdfile and stored in a central location..something like/private/var/folders/..../.md` (on Mac):wq) the TUI pulls the.mdfile and fills the promptSo yeah...take this and debug or ask your favourite LLM for help
mekedron commentedon Feb 16, 2026
@ikusteu ah, you're right! I've just checked with Vim and it works fine. Last time I tried with Zed (rust-based GUI code editor), and it didn't work, but when I switched my EDITOR=vim it worked alright! Thanks!
leohenon commentedon Mar 20, 2026
I maintain ocv, an opencode fork with vim keybindings built in to the prompt input.
brew install leohenon/tap/ocvTarquinen commentedon May 10, 2026
I made a plugin you can try, it's not got many features and i'm not sure I will be able to maintain it much but it's got enough of what I want from VIM for me:
opencode plugin opencode-vim@latest --globalZZPHUB commentedon Jun 23, 2026
but if i save the words by
:wq,then i has no chance to edit them again,right?this is a big problem for me,i think.ikusteu commentedon Jun 23, 2026
If you mean, you can't run
/editorafter there's text in the input field, simply do Ctrl+P (and select 'Open editor' -- or start typing to filter)KevinNitroG commentedon Jun 23, 2026
Hi does anybody notice that this issue's id is
11111👀ZZPHUB commentedon Jun 23, 2026
yeap,it works,but i found what i want is opencode-vim.
thanks!
github-actions commentedon Aug 23, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.