Skip to content

Add vim mode support#17124

Closed
mahersaba wants to merge 1 commit intoanomalyco:devfrom
mahersaba:dev
Closed

Add vim mode support#17124
mahersaba wants to merge 1 commit intoanomalyco:devfrom
mahersaba:dev

Conversation

@mahersaba
Copy link

Issue for this PR

Adding /vim support to OpenCode

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adding a /vim support for vim command, hjkl, 0, $, i, I, dd, D, cw, x.
Adding support for reading the config file and setting the default mode, with /vim mode being off by default and persistent across sessions if changed.

If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

I test it manually

Screenshots / recordings

It's a text mode changes, not UI.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@github-actions github-actions bot added the needs:compliance This means the issue will auto-close after 2 hours. label Mar 12, 2026
@github-actions
Copy link
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • No issue referenced. Please add Closes #<number> linking to the relevant issue.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions
Copy link
Contributor

Hey! Your PR title Add vim mode support doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found a potentially related PR:

Related PR:

This PR appears to be related as it also implements vim motions/keybindings for the TUI editor (hjkl, 0, $, etc.). This could be addressing the same feature area as PR #17124, or it may have already implemented some of the functionality you're adding. You should review this PR to understand what vim support already exists and ensure your changes don't duplicate or conflict with it.

@mahersaba mahersaba closed this Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:compliance This means the issue will auto-close after 2 hours. needs:title

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant