Turns out this was the real test of Artificial General Intelligence all along.
Also: https://github.com/hakluke/how-to-exit-vim