all notes
🪴
evergreen
·
Updated
Cursor AI - Enable repeated keys for Neovim plugin
Juri Strumpflohner
I’ve been using the VSCodeVim and later VSCode Neovim plugin for a while to leverage Vim commands from within VSCode. One thing that bothered me though is when navigating lines, I just keep pressing j
and hold it to quickly scroll downwards. That doesn’t work out of the box though.
For VSCode I enabled it using the following command:
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
What about Cursor AI though? What’s the package name for Cursor? To get that, run:
mdls -name kMDItemCFBundleIdentifier -r /Applications/Cursor.app
This should give you a package name, which for me was com.todesktop.230313mzl4w4u92
(actually kinda weird 🤔).
Then run this command:
defaults write com.todesktop.230313mzl4w4u92 ApplePressAndHoldEnabled -bool false
Restart Cursor and it should work as expected.
You could also disable the ApplePressAndHoldEnabled
at a global level with:
defaults write -g ApplePressAndHoldEnabled -bool false
I’m not sure whether that has other implications though.