Skip to content

Disable vim mode and remove dead code - #70

Merged
ApiliumDevTeam merged 1 commit into
devfrom
chore/disable-vim-mode
Jul 14, 2026
Merged

ApiliumDevTeam merged 1 commit into
devfrom
chore/disable-vim-mode

Conversation

@ApiliumDevTeam

Copy link
Copy Markdown
Collaborator

Summary

The vim mode implementation was structurally broken: the editor bridge that connects vim motions to the buffer was never wired, so every editing operation silently no-op'd while the mode indicator claimed vim was active. Keys were consumed without editing, leaving users with a non-functional editor.

This disables vim honestly and removes the dead code:

  • /vim now reports "vim mode is not available in this build" instead of toggling a non-functional mode.
  • Removed vim-handler.ts and its test suite (730 LOC of dead code).
  • Stripped all vim wiring from tui.ts, custom-editor.ts, tui-types.ts, and keybinding-resolver.ts (the toggleVim keybinding was already dead — never dispatched).
  • Deprecated config.ui.vim with an honest comment (kept for backward compat).
  • Updated README and the TUI redesign doc.

Emacs/readline-style keybindings (Ctrl+A/E home/end, Ctrl+W delete word, Ctrl+U/K delete to line bounds) remain available via the editor.

Test plan

  • pnpm tsgo — 0 errors
  • pnpm lint — 0 errors, 352 warnings
  • pnpm exec vitest run src/tui/ — 505 passed, 1 skipped, 0 failed

The vim mode implementation was structurally broken: the editor bridge
that connects vim motions to the buffer was never wired, so every
editing operation silently no-op'd while the mode indicator claimed vim
was active. Keys were consumed without editing, leaving users with a
non-functional editor.

Disable vim honestly instead of leaving the broken experience: /vim now
reports that the feature is unavailable, the dead handler and tests are
removed (730 LOC), all vim wiring is stripped from the TUI, the config
flag is deprecated, and docs are updated. Emacs/readline-style
keybindings remain available.
@ApiliumDevTeam
ApiliumDevTeam merged commit ea1b5b4 into dev Jul 14, 2026
13 of 14 checks passed
@ApiliumDevTeam
ApiliumDevTeam deleted the chore/disable-vim-mode branch July 14, 2026 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant