If you use Vim-style keybindings or Vim mode in VSCode, Cursor, Antigravity or Obsidian, you might have hit this problem:
Holding
jorkdoes NOT repeat -- instead macOS shows the accent picker (é, ñ, ö, …)
This completely breaks Vim-style navigation, because Vim relies on the key repeat not press-and-hold.
Here is how to fix it properly for any app on MacOS.
NOTE: Tested on MacOS 15.7.3
If you want Vim-style behavior everywhere:
defaults write -g ApplePressAndHoldEnabled -bool false
Then log out and log back in (or reboot).
This is best you only want to affect editors which use Vim-style keybindings.
Run:
osascript -e ‘id of app “APP_NAME”’
Examples:
osascript -e ‘id of app “Visual Studio Code”’
osascript -e ‘id of app “Obsidian”’
osascript -e ‘id of app “Cursor”’
Example output:
com.microsoft.VSCode
md.obsidian
com.todesktop.230313mzl4w4u92
com.google.antigravity
Run: