Vim extension in Cursor, Zed, or VS Code on macOS — arrow keys and held hjkl don’t repeat. macOS disables key repeat for some Electron apps by default.
Fix: disable ApplePressAndHoldEnabled for the app (keeps accent popup off, enables key repeat).
- Get the app’s bundle ID:
osascript -e 'id of app "Cursor"' # or "Zed" or "Visual Studio Code"
- Enable key repeat for that app:
defaults write <BUNDLE_ID> ApplePressAndHoldEnabled -bool false
Examples:
- Cursor:
com.todesktop.230313mzl4w4u92 - Zed:
dev.zed.Zed - VS Code:
com.microsoft.VSCode
- Restart the app.
To reset a global override: defaults delete -g ApplePressAndHoldEnabled