Guest User

Untitled

a guest
Dec 7th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. # Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key
  2. # that enables you to choose a character from a menu of options. If you are on Lion
  3. # try it by pressing and holding down 'e' in any app that uses the default NSTextField
  4. # for input.
  5. #
  6. # It's a nice feature and continues the blending of Mac OS X and iOS features. However,
  7. # it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode,
  8. # as it means you cannot press and hold h/j/k/l to move through your file. You have
  9. # to repeatedly press the keys to navigate.
  10.  
  11. # You can disable this feature for just Sublime Text by issuing the following command
  12. # in your terminal (*not* the Sublime Text console):
  13.  
  14. defaults write com.sublimetext.3 ApplePressAndHoldEnabled -bool false
  15.  
  16. # Note: replace com.sublimetext.3 with whichever version of Sublime Text you are running
  17. # eg. 'com.sublimetext.2'
  18.  
  19. # Alternately, if you want this feature disabled globally, you can enter this:
  20.  
  21. defaults write -g ApplePressAndHoldEnabled -bool false
  22.  
  23. # In either case you'll need to restart Sublime Text for the change to take place.
  24.  
  25. # Happy coding!
Add Comment
Please, Sign In to add comment