Integrated Terminal is Stuck with Vim-Like Behaviour

Hi

The Integrated Terminal is not letting me use Option + Arrow to navigate. The behaviour is as follows:

  • Option + Left Arrow → Jumps words as desired
  • If Option + Right Arrow → Nothing happens. If I then use Right Arrow afterwards, the line clears?
  • If Right Arrow → I can move… but then get stuck at the second to last character
  • If chain esc, colon –> An execute: __ prompt comes up… but enter after typing doesn’t do anything

I’m also seeing strangeness with Command Left/Right –– prints ^A. bindkey -e restores this behaviour.

My Apple Native Terminal is not having option issue.

I suspect this may due to a VIM extension I had in the past, but this behaviour still exists despite:

  • A Cursor binary reinstall (hail mary)
  • Disabling all extensions

I’ve done the following to investigate:

  1. Skimmed through Terminal settings
  2. Compared environments between Ghostty and Cursor
  3. Running bindkey -e in the terminal solves all of these problems. Ripgrepped home directory for bindkey -v, found nothing.

Hey @Jack_Hedaya!

This should have been fixed a long time ago. Are you using v2.2 – does it still happen?

I discovered that this only happens if EDITOR=vim in the environment.
This was unintuitive to me but I added bindkey to my environment as a fix.