visudo uses vim

Bug #431972 reported by benholroyd
This bug report is a duplicate of:  Bug #280877: visudo does not use sensible-editor. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sudo (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: sudo

at the moment visudo uses vim by default.
if you are a vim user cast your mind back to when you first started using it (vim attemptees will know what i mean) , i dont think attempting to learn how to use vim while editing the sudoers file is perhaps the best way to learn.

perhaps a more sensible default would be nano?

its a fairly simple fix visudo uses /usr/bin/editor which in turn links to /etc/alternatives/editor which in turn (by default) links to vim.tiny

i previously reported this in 100 paper cuts but they rejected it on the basis of the average user not using the terminal and so not being in their remit.

Revision history for this message
Carl Strickler (cstrickler) wrote :

vi, vim, view, vipw, vigr, and visudo should ALL call vi(m). The utilities are called "vi(name)" for a reason.

if you are a computer user cast your mind back to a time when you tried to do a specific task and the computer decided that it was smarter than you and knew what you really meant. I don't think attempting to learn whatever the cool editor of the week is when you have a sudoers file full of vi commands and screwy text that was entered before the admin figured out that VIsudo is not using vi is the best way to learn.

I'm sure someone out there can create a nanosudo, picosudo, joesudo, etc. Changing a specific command to call a completely different command because people who want to admin machines find it a nuisance to learn the first command is always a bad idea.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.