Visudo invokes GNU nano rather than vi

neil woolford lists at neilwoolford.plus.com
Thu Jan 12 19:21:15 UTC 2006


On Thu, 2006-01-12 at 12:22 +0000, Dick Davies wrote:
> On 12/01/06, neil woolford <lists at neilwoolford.plus.com> wrote:

> > Can I change back to vi for this?  The visudo manpage says that vi is
> > the default unless a value is set in environment variables EDITOR or
> > VISUAL, both of which appear to be empty on my system, so I'm stumped as
> > to why this is happening.
> 
> I'd guess that you'll find /etc/alternatives/editor is a symlink to /bin/nano.
> 
> Try
> 
>  sudo update-alternatives --set editor /usr/bin/vim
> 
Thank you, that was exactly on the button!  And another useful feature
of Debian systems for me to investigate...

Neil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060112/d0607973/attachment.sig>


More information about the ubuntu-users mailing list