Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #190696

vipw and vigr default editor

From John Ratliff <john@bluemarble.net>
Newsgroups linux.debian.user
Subject vipw and vigr default editor
Date 2018-01-05 21:10 +0100
Message-ID <v4Gts-8kd-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


When I run

sudo vipw or sudo vigr, it uses nano as the default editor. I've already 
used update-alternatives to select vim as my default editor, but this 
doesn't seem to work for vipw/vigr.

I have to do

sudo EDITOR=vim vipw

How can I make vim the default editor for vipw/vigr. Or how can I set 
the EDITOR variable when I use sudo automatically?

Thanks.

--John

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

vipw and vigr default editor John Ratliff <john@bluemarble.net> - 2018-01-05 21:10 +0100
  Re: vipw and vigr default editor Greg Wooledge <wooledg@eeg.ccf.org> - 2018-01-05 21:20 +0100
    Re: vipw and vigr default editor Ulf Volmer <u.volmer@u-v.de> - 2018-01-05 21:40 +0100
      Re: vipw and vigr default editor Greg Wooledge <wooledg@eeg.ccf.org> - 2018-01-05 21:50 +0100
      Re: vipw and vigr default editor Brian <ad44@cityscape.co.uk> - 2018-01-05 21:50 +0100
      Re: vipw and vigr default editor Roberto C. Sánchez <roberto@debian.org> - 2018-01-05 21:50 +0100
        Re: vipw and vigr default editor Ulf Volmer <u.volmer@u-v.de> - 2018-01-05 22:00 +0100
  Re: vipw and vigr default editor Roberto C. Sánchez <roberto@debian.org> - 2018-01-05 21:30 +0100
    Re: vipw and vigr default editor John Ratliff <john@bluemarble.net> - 2018-01-05 23:10 +0100
  Re: vipw and vigr default editor Charles Kroeger <ckrogrr@frankensteinface.com> - 2018-01-06 04:40 +0100

csiph-web