If one has bash as the default shell, why not ex as the standard line-oriented text editor?
Postscript - ex is the version of ed rolled up in vim, which extends the command set of ed. vi, by contrast, handles colon commands by invoking ed externally.