Improve ed(1) abstraction