by mst · 4y ago · 0 comments
Having learned vi across eight-ish different unices at once my muscle memory is very minimalist so I tend to use ex-vi preferentially, simply because everything else adds features I don't use that I can accidentally activate with a typo and break myself out of flow figuring out wtf just happened.
I can absolutely imagine that for somebody who tends to use OpenBSD on their own machines, being able to have the exact same editor elsewhere could be really quite handy for much the same reasons.
The parent project on SourceForge hasn't had any activity for 15 years, nor a release in 17+ years, and contains various known bugs, all of which are fixed in Carsten Kunze's project.
Naturally I've accumulated a few local patches over the years so I'll have to figure out which of them are obsoleted by the improvements in that version and which of them I want to port first ;)
(thanks very much for sharing that this exists though, I shall be digging in when I have available tuits)
I suspect that once I untangle my somewhat hacky version of that the remainder of my patches will apply just fine but there'll still be at least a bit of mental effort involved.
https://github.com/hughbarney/pEmacs
Stripped -Os build using link-time GC on Linux x86_64 glibc:
30 KB pe*
Compare to portable mg: 132 KB mg*
OpenVi is ... 278 KB bin/vi*
An even smaller vi implementation is Xvi. 56 KB src/xvi*
This would be an 'ersatz' vi since it is not built on top of a real ex-mode.Even tinier ersatz-vi clones exist (`levee`, `s`, `VIrus`) but these are not complete implementations.