-- Leo's gemini proxy

-- Connecting to bbs.geminispace.org:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini; charset=utf-8

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 [mod]

2023-07-07 ยท 10 months ago ยท ๐Ÿ‘ ResetReboot


1 Comment


๐Ÿฆ Arkaeriit ยท 2023-07-09 at 10:45:

Thanks for this great tip!

-- Response ended

-- Page fetched on Sun May 19 11:41:53 2024