Wednesday 24 May 2017
This made me laugh for several minutes.
It looks like developers in Ukraine, Turkey and Indonesia are getting stuck in Vim quite a bit: it makes up a larger portion of their Vim questions than in any other country. In contrast, in China, Korea and Japan the fraction going to this question is one-tenth as much. That might indicate that when developers in these countries enter Vim, they usually meant to do so, and they know how to get out of it.
No. It’s because China, Korea and Japan are non-English-speaking countries. People who get stuck there are less likely to do a search in English.
Friday 12 May 2017
Friday 28 April 2017
Karabiner is a very good keyboard customizing tool for Mac. I’ve been using it for a long time. I loved its Vim mode so much, I even bought a keyboard without arrow keys for my daily use.
However, Karabiner was broken after upgrading to macOS Sierra, due to the complete rewrite of the Mac keyboard driver. (Apple has done this to support the new Touch Bar MacBook Pro, apparently.)
Since then, the author of Karabiner has been working hard to reimplement the app. It is an open-source project on GitHub. I check the commits page every day to see the progress.
After almost one year, the new Karabiner still hasn’t been finished. While waiting for the new Karabiner, I’ve found that Apple actually added some native custom key binding support for macOS. Now it is possible to simulate some kind of the Vim mode on Mac.
Here’s what I’ve done:
/* ~/Library/KeyBindings/DefaultKeyBinding.dict */
/* Vim arrow keys */
"^h" = "moveBackward:";
"^l" = "moveForward:";
"^k" = "moveUp:";
"^j" = "moveDown:";
Now I can use
Ctrl-hjkl as system-wide arrow keys.
This method is however not perfect. If an app has defined its own use of
Ctrl-hjkl keys, this setting will not overwrite it. So it just won’t work in some apps. It’s also not as convenient to press as the Karabiner Vim mode, which uses
s key and a time delay instead of
I’m still waiting for the new Karabiner. Please consider donating to the author if you are waiting too.
Wednesday 05 April 2017
So: only 30 percent of Mac users are in what Apple considers the pro market. Most of those use MacBook Pros (or other MacBooks). Most of those who use desktops use iMacs. None of this is a surprise, really — and this is exactly why so many users who depend on the Mac Pro have been deeply concerned about its future. For Apple to care about the Mac Pro, it requires Apple to care about a small number of users.
The Mac Pro isn’t going to disappear, which is finally a good news I can hear from Apple.
To be honest, I never really need a Mac Pro. Whether the Mac Pro lives or not should has nothing to do with me. However, I still have been quite sad and disappointed about Apple for a long time because of the 3-year-unchanged Mac Pro. It’s not just an expensive computer. For me, the Mac Pro is symbolic.
The Mac Pro isn’t about making money or “care about a small number of users”. It’s all about the people who use it. The programmers who compile huge softwares. The photographers who process large graphic and video files. The compositors who render film visual effects. Those are the ones who make Mac (and Apple) so cool. The Mac Pro is the flagship of all Macs. A flagship is the ship that carries the flag and raises the morale of all other ships. The Mac lineup without Mac Pro isn’t a cool lineup. And the Apple without Mac Pro isn’t a cool company.
I’ve been sad not because I’m a “pro user” and couldn’t get the power I need. I’ve been sad because Apple isn’t cool and special any more. Several years ago, Apple was still the company who made things for the “crazy” ones, the ones “who see things differently”, the ones “who are crazy enough to think they can change the world are the ones who do”. Today, they just display some percentage numbers to show just how kind they are to still even care about “a small number of users”.
I really hope they can bring something back next year .
Monday 27 March 2017