Skip to content

[FEATURE]: VIM Keyboard Layout #11111

Closed as not planned
Closed as not planned

Description

@IvanProg00

Feature hasn't been suggested before.

  • 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.

Image

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Jan 29, 2026
  2. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 29, 2026
  3. github-actions commented on Jan 29, 2026

    @github-actions
    Contributor

    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

  4. ikusteu commented on Jan 29, 2026

    @ikusteu

    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.

  5. Stewart86 commented on Jan 29, 2026

    @Stewart86

    did you just blindly check I have verified this feature I'm about to request hasn't been suggested before.?

  6. mekedron commented on Feb 16, 2026

    @mekedron

    @ikusteu yeah, actually editor command works, but unfortunately it doesn't update the edited prompt to the opencode's tui text input field

  7. ikusteu commented on Feb 16, 2026

    @ikusteu

    @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

  8. mekedron commented on Feb 16, 2026

    @mekedron

    @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!

  9. leohenon commented on Mar 20, 2026

    @leohenon

    I maintain ocv, an opencode fork with vim keybindings built in to the prompt input.

    brew install leohenon/tap/ocv

  10. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on May 3, 2026
  11. Tarquinen commented on May 10, 2026

    @Tarquinen
    Member

    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 --global

  12. ZZPHUB commented on Jun 23, 2026

    @ZZPHUB

    @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.

  13. ikusteu commented on Jun 23, 2026

    @ikusteu

    If you mean, you can't run /editor after there's text in the input field, simply do Ctrl+P (and select 'Open editor' -- or start typing to filter)

  14. KevinNitroG commented on Jun 23, 2026

    @KevinNitroG

    Hi does anybody notice that this issue's id is 11111 👀

  15. ZZPHUB commented on Jun 23, 2026

    @ZZPHUB

    If you mean, you can't run /editor after there's text in the input field, simply do Ctrl+P (and select 'Open editor' -- or start typing to filter)

    如果你的意思是在输入框已有文字后无法运行 /editor,只需按下 Ctrl+P(然后选择“打开编辑器”——或者直接输入内容进行筛选)

    yeap,it works,but i found what i want is opencode-vim.
    thanks!

  16. github-actions commented on Aug 23, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions