Yi's Words
Hi, I'm Yi.
Thursday 11 May 2017

Steve Vai — “Tender Surrender”



Friday 28 April 2017

Use Vim Mode on macOS

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 Ctrl.

I’m still waiting for the new Karabiner. Please consider donating to the author if you are waiting too.

Tuesday 04 April 2017

The Symbolic Mac Pro


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

Security Content of macOS Sierra 10.12.4


说到「360 安全卫士」,很多人(包括我在内)的反应都不是很正面。很出乎意外,苹果系统更新里有多少 bug 的提交者署名来自「Qihoo 360」,

Sunday 19 March 2017