no matter what you editor you use, set EDITOR to whatever you want, then when you want to edit files as root do `sudo -e /path/to/file`
thanks me later
thanks me later
`sudoedit` (and equivalently `sudo -e`) makes a copy of the file that you can edit and then copies it back as root iff it's changed.