On Sun, 2022-07-24 at 04:19 +0930, Tim via users wrote:
Tim:
there are specific instances of vi, like visudo, which solves a particular problem that other editors do not (man visudo goes into what's special about it).
Patrick O'Callaghan:
Despite the name, visudo can be used with any editor. The man page gives an example.
Yes, you can use a different editor, but I think you lose the features it offered you.
I haven't used it but I'm not sure that's true. It applies locking to the /etc/sudoers file, and does a syntax check before installing the edited version, but neither of those things would depend on the specific editor.
poc