I wrote a clone of TECO[1] (Text Editor and COrrector) for MS-DOS back in the 1980s.
Teco was something the CS upper classmen were using to prove their hacker creds back at Rose-Hulman in 1981. It's a horrible editor, but it does macros, and was good enough to build the first version of EMACS.