@dougmerritt @screwlisp @veer66
Emacs does and has done, for a very long time, a full vi implementation including the ex/ed commands.
#Emacs is in fact a very good vi emulator, at least as good as vim. Much better if you take the rest of Emacs into account. Having elisp and all of the capabilities of Emacs at the same time it is giving vi abilities. It's vi with modal editing and ex if and when you want it, and also so much more.
I worked professionally using vi, not vim, for 15 years before switching to emacs for the last 30 years.
I've tried vim on occasion, even with lots of vimscriprt it falls very short for me.