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. 😎
Published at
2025-01-07 17:22:39Event JSON
{
"id": "129d530bfb1f5db1098661d74d84576c074289774aa406324c88ef096dc95da7",
"pubkey": "9d1fe9f29c7a1e42464c3985f7185fe112b286140d32b8586dd34c6f92d6d9ee",
"created_at": 1736270559,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.bsd.cafe/users/gumnos/statuses/113788227414617542",
"activitypub"
]
],
"content": "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.\"\n\n-12^A\n\nThe \"-\" 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. 😎",
"sig": "357d91363f367825f4ed6caf401eccc6a56cae050db12afa73eb352e9538417b1aa530a7e36ed0e1ad61182bd2822cb583fe0df33d6682499565765cbe484a75"
}