For resource constrained systems, don't overlook busybox vi.
https://k.japko.eu/busybox-vi-tutorial.html