Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Enable key repeat in Apple Lion for Atom in Vim mode
# Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key
# that enables you to choose a character from a menu of options. If you are on Lion
# try it by pressing and holding down 'e' in any app that uses the default NSTextField
# for input.
#
# It's a nice feature and continues the blending of Mac OS X and iOS features. However,
# it's a nightmare to deal with in Atom if you're running vim mode,
# as it means you cannot press and hold h/j/k/l to move through your file. You have
# to repeatedly press the keys to navigate.
defaults write com.github.atom ApplePressAndHoldEnabled -bool false
# Alternately, if you want this feature disabled globally, you can enter this:
defaults write -g ApplePressAndHoldEnabled -bool false
# In either case you'll need to restart Atom for the change to take place.
# Happy coding!
@mikeokner

This comment has been minimized.

Copy link

mikeokner commented Jan 26, 2015

Works like a charm, thanks!

@PandaWhisperer

This comment has been minimized.

Copy link

PandaWhisperer commented Jul 23, 2015

Works for me!

@robwise

This comment has been minimized.

Copy link

robwise commented Jan 20, 2016

Thank you!

@mliu7

This comment has been minimized.

Copy link

mliu7 commented Feb 20, 2016

Perfect. Thank you!

@matthewpick

This comment has been minimized.

Copy link

matthewpick commented Apr 7, 2016

👍 this works great for Atom. I recommend the global property!
This helps when scrolling through long commit lists using terminal-plus plugin. Also helps with the terminal in Intellij IDE.

@beninada

This comment has been minimized.

Copy link

beninada commented Jan 13, 2018

thank you so much

@junkycoder

This comment has been minimized.

Copy link

junkycoder commented Oct 1, 2018

Works for VS Code too, thanks man!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.