Sunday, February 14, 2021

ApplePressAndHoldEnabled issues for hold and repeat keys for vim on Macos

Hello VIMers,

Holding h j k l keys sometimes does not trigger repeated keys on Mac. Instead, some strange behaviors happen. I'm using the vim 8.2.1972 coming with Macos 11.2.1 Big Sur. I read a lot of questions asked about this issue, but they are all about VIM mode extension for IDEs like vscode. It is suggested to run something like ``defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false``. But this cannot work with command line VIM! Even setting the global defaults does not help. Any mac vim users having this issue? Maybe switching to MacVim can help. But I really don't want to do so since the stock version of vim serves me well except for this issue.

Update:
I found out how it works after writing the email. Since I didn't find any message on this by searching, I will send this out as a record. You have to set it for the terminal app you are using. Specifically, I'm using Alacritty (io.alacritty). It was really dumb of me not to realize this. iTerm seems not affected. 

Regards,
Haodong Du

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/b483239f-56ac-49ce-9ba6-c66b3429cc41n%40googlegroups.com.

No comments: