Replace nethack with your favourite editor, and it might just work. (Well, also replace the floppy disk with something faster.)