ed is rather rare since sed is the standard for use in scripts for some time already.

vi is much more likely to be present and more useful.