Basic ed reference:
Basic Ed Commands Quick Reference:
~e - enter ed from posting
In command mode:
n - show line numbers z - view next several lines d - delete current line a - start edit after current line i - start edit before current line x - finish editing and post
In edit mode:
. - finish edit and return to command mode