💾 Archived View for bbs.geminispace.org › s › vim › 2888 captured on 2023-09-28 at 18:16:24. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-09-08)

➡️ Next capture (2023-11-04)

🚧 View Differences

-=-=-=-=-=-=-

Editing Near-ASCII Binary Files

I am experimenting with a near-ASCII file format containing text messages and binary markers (high bit set). Vim is surprisingly useful: it will display files in a reasonable-for-debugging way by displaying hex values for high characters. It preserves these during editing, and will even allow you to enter non-ascii characters:

In Insert mode,

CTRL-V x AB

will insert 0xAB. o will similarly take 3 octal digits. Just numbers for decimal digits.

Posted in: s/vim

🚀 stack

2023-07-07 · 3 months ago · 👍 ResetReboot

1 Comment

🐦 Arkaeriit

Thanks for this great tip!

2023-07-09 · 3 months ago