Add editor line support and write-only support for rmate (#32357)
I often use [rmate](https://github.com/aurora/rmate) to support working on remote systems -- this adds line number support as well as uses the `-f` flag to force it to open read-only files