Mac tips - Turn on the [Keyboard Repeat Keys] function

Under Mac OS I usually write code in Sublime Text. But the reason for using Vim in the early years is that I especially like the keyboard to control various things. Chrome, for example, uses Vimium for full keyboard control. The mouse or touchpad has been used less and less in the past six months.  

But many apps only trigger once when a key is long-pressed under Mac. For example, in Sublime Text, when operating in Vim mode, when you press and hold "J", you will only press to jump to a line. But it is strange that after opening the Chinese input method, you can always jump down.

In fact, we can use the following command to re-open this function by default.

$ defaults write -g ApplePressAndHoldEnabled -bool false

After setting and restarting your Sublime Text, you can realize the contact trigger function when you press and hold it.

 

 

 

Log out and back in to the system for the changes to take effect.
If you need to restore the ability to long press the keyboard to accent or non-English characters, open a terminal window and run the following command:

  1. defaults delete -g ApplePressAndHoldEnabled

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326563651&siteId=291194637