As the other comment said, no. But I’ve had the idea and will to at some point write a edit script (that I can just set EDITOR= to) that would just choose one of the first common editors. That could in theory have a -0 option to run as root (there also probably looking through run0, doas, sudo and su). Not the editor, but doing the editing on a temp file and then copying with root
As the other comment said, no. But I’ve had the idea and will to at some point write a
edit
script (that I can just setEDITOR=
to) that would just choose one of the first common editors. That could in theory have a-0
option to run as root (there also probably looking throughrun0
,doas
,sudo
andsu
). Not the editor, but doing the editing on a temp file and then copying with root