News for hackers. Stuff that matters.
Re:Vim's 25th anniversary and the release of Vim 8 by tnorthcutt on Thursday February 09, 2017 @12:53PM (#13609062)
Sadly on macOS Sierra, you have to use Karabiner-Elements, which doesn't (yet, I hope) include support for long-press=ctrl.
Re:Vim's 25th anniversary and the release of Vim 8 by The_Hoff on Thursday February 09, 2017 @02:20PM (#13609952)
If you're fine giving up caps lock, Sierra makes it easy to remap caps lock to esc in Systems Preferences (it even disables the little green light on the key)
Re:Vim's 25th anniversary and the release of Vim 8 by ikurei on Friday February 10, 2017 @05:29AM (#13614454)
Sadly, that isn't as powerful as what our comment-ancestors do with Karabiner. Such an accessible and prominent key as Caps Lock is, IMHO, wasted if only used for ESC; using it both for Control when in combinations and ESC when alone makes the most sense.

I use Caps Lock for Cmd or Ctrl, depending on which keyboard I'm using, and <Leader><Leader> for Escape on Vim.

I don't know where I got this idea from, but I also use <Leader>w to exit to normal mode and save. It's so ingrained in me, that when I use other editors very often I have "Unexpected token" errors because of a ",w" in the middle of the code.

Re:Vim's 25th anniversary and the release of Vim 8 by toxik on Thursday February 09, 2017 @08:55PM (#13612696)
Wow, that's news to me! How I've waited for Apple to do this. Karabiner-Elements does some shady stuff with the kernel and in my experience makes the machine a lot less reliable.
Re:Vim's 25th anniversary and the release of Vim 8 by steeef on Thursday February 09, 2017 @11:47PM (#13613288)
There is a pull request to implement this feature: https://github.com/tekezo/Karabiner-Elements/pull/247

I haven't tried it myself. Honestly it's one of the things keeping me from upgrading to Sierra. Need to test it out first.

Re:Vim's 25th anniversary and the release of Vim 8 by drewm1980 on Friday February 10, 2017 @03:12AM (#13613956)
I am surprised to learn that the set of people who use vim and the set of people who have patience to "long-press" intersects!
Re:Vim's 25th anniversary and the release of Vim 8 by yankcrime on Thursday February 09, 2017 @03:30PM (#13610640)
FWIW you can also use Keyboard Maestro to solve this problem.
Re:Vim's 25th anniversary and the release of Vim 8 by innocentoldguy on Saturday February 11, 2017 @01:56AM (#13621491)
I use Keyboard Maestro for exactly this purpose. For the most part, it is great. However, it does just stop working every now and then, at least for me, which is mildly irritating.