mg is a small, lightweight emacs clone in the base system. Sysadmins who do not like to use vi(1) or ed(1) have an alternative.
mg
vi(1)
ed(1)
Details: