--------------------------------------- prior to FreeBSD 14 root uses /bin/csh so edit /root/.cshrc and set setenv EDITOR ed --------------------------------------- since FreeBSD 14 root uses /bin/sh so edit /root/.profile and set EDITOR=ed; export EDITOR