Tim Chase on Nostr: As a long-time user of vi/vim, I still regularly get little moments of delight when ...
As a long-time user of vi/vim, I still regularly get little moments of delight when some modestly-complex change can be done with just a few keystrokes. Just now it was "on that previous line, inconveniently located (so moving by word/character/sentence isn't helpful) there's a number I need to increment by 12."
-12^A
The "-" moved to the first character of the previous line, the 12 followed by control+a jumped the cursor directly to that number and incremented it by 12. And done without my fingers leaving the home-row. 😎
-12^A
The "-" moved to the first character of the previous line, the 12 followed by control+a jumped the cursor directly to that number and incremented it by 12. And done without my fingers leaving the home-row. 😎