Fedora 14 uses vi by default when one runs visudo. Is there a way to change this to something else?
How to set visudo to use a different editor than the default on Fedora?
sudo
Adding Defaults editor=/path/to/editor in the sudoers file will cause visudo to use the specified editor for changes.Additionally, if your sudo package has been built with --with-env-editor, as is the default on some Linux distributions, you can also set the EDITOR environment variable by executing export EDITOR=/path/to/editor. Performed on the command line this will revert as soon as that shell session is terminated, setting the variable in a ~/.bashrc or /etc/profile will cause the change to persist.