mg: port of OpenBSD mg version to Linux

Last modification on 2014-11-23

NOTE: this fork is out-dated and is not maintained currently!
Please use the portable mg:

This is the port of the mg editor (OpenBSD version) to Linux. It should be possible to compile it with atleast musl libc and glibc.



git clone git://


Changes vs upstream

I tried to keep the changes minimal to make it easy to synchronize with upstream changes and to not introduce new bugs. However there were some changes that needed to be made because of differences between OpenBSD and Linux and these are: