News for hackers. Stuff that matters.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by hellofunk on Saturday December 03, 2016 @12:39PM (#13096578)
Vi is not just the past. It remains one of the best ways to edit text, period. And it will probably continue this way long into the future. Why do you think so many IDEs come with vim emulation?
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by nilkn on Saturday December 03, 2016 @12:45PM (#13096610)
Just for the record, I use vim all the time on the new MBP and don't have any issues. I remapped Esc in vim ages ago, though. vim was not designed around the current placement of the Esc key.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by KurtMueller on Saturday December 03, 2016 @12:54PM (#13096648)
What do you use in its stead?
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by nilkn on Saturday December 03, 2016 @12:59PM (#13096665)
For the past year or so I've been using the key sequence "fd", which I discovered from spacemacs. (I've actually copied a lot of spacemacs keybindings because I found them very ergonomic.)
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by hellofunk on Saturday December 03, 2016 @01:24PM (#13096771)
Great tip! I've installed evil-escape in my emacs and now have the same binding. Quite useful.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by Peaker on Saturday December 03, 2016 @12:45PM (#13096608)
Popularity isn't really a good argument.

It could either be because it's a good way to edit text, or because of inertia and extreme conservative nature of developers.

Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by hellofunk on Saturday December 03, 2016 @01:03PM (#13096682)
I made no claim about popularity. I did make a claim about productivity. Big difference.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by Peaker on Monday December 05, 2016 @10:41AM (#13106064)
> Why do you think so many IDEs come with vim emulation

I was referring to the claim that a popular choice amongst IDE makers meant it was a good idea.

Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by sanbor on Saturday December 03, 2016 @01:01PM (#13096672)
Ctrl-C is equivalent to pressing Esc in Vim and you don't have to move your hand so much.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by hellofunk on Sunday December 04, 2016 @04:52AM (#13099432)
Ctrl is one of the keys that vim specifically tries to avoid.
Re:A Programmer Evaluates the MacBook Pro (Touch Bar) by sanbor on Monday December 05, 2016 @09:55PM (#13111893)
Certainly by having modes vim has great keyboard shortcuts and avoid having to press combination of keys. However, for redo you have to press Ctrl+R, so that would indicate that Ctrl is not forbidden in vim. In this particular case, I find more confortable to move a little my fingers to press Ctrl+C than having to move my whole hand to the upper top of the keyboard to press esc. Also, it is nice that this shortcut works everywhere without having to remap your Donglebook.