This has appeared at the bottom of Xcode’s Text Editing > Editing settings, sure to make many vi users very happy indeeed:
The change is heralded in the Release Notes:
Using the new vim features is super easy. When the Vim keybindings are enabled, the bottom of your source editor gets this, showing current state, plus a few reminders for those whose muscle memory isn’t quite current. It’s up to you to know your hjkluybn stuff.
You can tell if you’re navigating or editing by the shape of the cursor. The cursor is a large block when you’re navigating or using any of the commands listed here. It is a vertical pipe when directly entering text.
You can tap i to insert text, switching to text entry mode and then ESC to return to navigate. Using a colon
: doesn’t do anything here, so no
:wq, which is not a huge surprise as neither
q makes a ton of sense in Xcode.
Anyway, if your a vimficianado, congratulations and enjoy the new toy.