Dear Crystal

Am 2024-07-11 07:09, schrieb Crystal Kolipe:
Regarding the OP's specific question - if the files being edited only
contain those specific UTF-8 sequences and are otherwise plain ASCII text,
then a simple work-around might be a script that replaces each two-byte
sequence with the corresponding ISO-8859-1 character, writes that to a
temporary file, invokes vi for editing the temporary file, then converts
it back to UTF-8 afterwards.

Thanks a lot for your suggestion. Indeed, my vi-files contain those 6
specific UTF-8 sequences only.

I have seen these 6 sequences are displayed as umlauts when I open
the vi files in LibreOffice, and when I convert the vi files to html
via asciidoctor.

Therefore, I consider it merely a "cosmetical" problem in vi and can do
without a script and without nvi - and stick a bit closer to the
OpenBSD base install :)

Best regards

Rolf

Reply via email to