This seems like one of the times when ed would be a legit editor of choice, rather than the other examples here which seem more like editors of last resort.
ed was built for this kind of system where limited I/O was a requirement for reasonable performance. If transferring a file is too expensive, you can't wait for the system to redraw the entire screen of 25 lines and 80 columns because you scrolled past the bottom of the screen, either.