<table cellspacing='0' cellpadding='0' border='0' ><tr><td style="font: inherit;"><br>The choice of editor depends on the env variable EDITOR.<br>Set the env variable to say vi, export EDITOR=vi<br>and visudo would open the file in vi instead of nano ;)<br><br>--- On <b>Sun, 2/3/08, Peter Garrett <i><peter.garrett@optusnet.com.au></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br><pre> By default on Ubuntu, visudo uses the "nano"<br>editor, which is not exactly what you'd expect ;) <br><br></pre></blockquote></td></tr></table>