Pozorvlak on Nostr: Today I used a Vim command with a repeat count of 514. I had lots of two-byte values ...
Today I used a Vim command with a repeat count of 514. I had lots of two-byte values in hex, and wanted to add 2 to each byte. Fortunately Vim's "add one to the value under the cursor" command (Ctrl+A) works on hex values. Also binary, incidentally, but not octal. Anyway, I felt like a wizard 😁
Published at
2025-10-03 18:31:05 UTCEvent JSON
{
"id": "09f93d2373ebf89d1a8017b933f3196c06675794174e281c20cae113d958a0ec",
"pubkey": "fb1eee6fb8ea3c509e40f95da1f56e6193149fa365716716fc71c185122a353f",
"created_at": 1759516265,
"kind": 1,
"tags": [
[
"proxy",
"https://mathstodon.xyz/users/pozorvlak/statuses/115311657993935170",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.mostr.pub"
]
],
"content": "Today I used a Vim command with a repeat count of 514. I had lots of two-byte values in hex, and wanted to add 2 to each byte. Fortunately Vim's \"add one to the value under the cursor\" command (Ctrl+A) works on hex values. Also binary, incidentally, but not octal. Anyway, I felt like a wizard 😁",
"sig": "05bdf028842685b19ce2b9c2dd9f6573857ab5994b8a264ededb967f7b425b1618ba44f5f69463cb80f8ac5ea8b097e679eb5a745274e32ff012f0d5029ce8ab"
}