When using Cursor’s Vim plugin on macOS, you might notice that holding down keys like j
or k
for navigation doesn’t repeat as expected. Instead of continuous movement, the system shows accent character options or simply doesn’t repeat at all.
This happens because macOS has “Press and Hold” enabled by default, which interferes with Vim’s key repeat functionality.
The Fix
Run this command in Terminal to disable Press and Hold specifically for Cursor:
defaults write com.todesktop.230313mzl4w4u92 ApplePressAndHoldEnabled -bool false
Restart Cursor for the changes to take effect.
Finding Your Bundle ID
If the command above doesn’t work (Cursor updates might change the bundle ID), you can find the correct identifier:
- Right-click on Cursor in Applications
- Select “Show Package Contents”
- Open
Contents/Info.plist
- Look for the
CFBundleIdentifier
value
Replace the bundle ID in the command with your specific identifier.