Re: vipw and vigr default editor

2018-01-05 Thread Charles Kroeger
if you're in a hurry in this situation try: apt-get remove --purge nano problem solved? -- CK

Re: vipw and vigr default editor

2018-01-05 Thread John Ratliff
On 1/5/2018 3:25 PM, Roberto C. Sánchez wrote: On Fri, Jan 05, 2018 at 03:00:43PM -0500, John Ratliff wrote: 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 wor

Re: vipw and vigr default editor

2018-01-05 Thread Ulf Volmer
On 05.01.2018 21:46, Roberto C. Sánchez wrote: > There is essentially no functional difference between allowing only the > EDITOR variable and any arbitrary environment variable. Allowing EDITOR > (or PAGER, or any other thing that sets the name of a command to > execute) through to sudo provides

Re: vipw and vigr default editor

2018-01-05 Thread Brian
On Fri 05 Jan 2018 at 21:37:16 +0100, Ulf Volmer wrote: > On 05.01.2018 21:15, Greg Wooledge wrote: > > On Fri, Jan 05, 2018 at 03:00:43PM -0500, John Ratliff wrote: > > >> sudo EDITOR=vim vipw > > > Defaultsenv_reset > > Defaults:greg !env_reset > > That basically keeps the *whole* e

Re: vipw and vigr default editor

2018-01-05 Thread Roberto C . Sánchez
On Fri, Jan 05, 2018 at 09:37:16PM +0100, Ulf Volmer wrote: > > That basically keeps the *whole* environment, what is usually a security > issue. Better solution is to keep only needed and proved environment > variables using > > Defaults env_keep += "EDITOR" > Allowing the EDITOR variable thro

Re: vipw and vigr default editor

2018-01-05 Thread Greg Wooledge
On Fri, Jan 05, 2018 at 09:37:16PM +0100, Ulf Volmer wrote: > On 05.01.2018 21:15, Greg Wooledge wrote: > > On Fri, Jan 05, 2018 at 03:00:43PM -0500, John Ratliff wrote: > > >> sudo EDITOR=vim vipw > > > Defaultsenv_reset > > Defaults:greg !env_reset > > That basically keeps the *whole

Re: vipw and vigr default editor

2018-01-05 Thread Ulf Volmer
On 05.01.2018 21:15, Greg Wooledge wrote: > On Fri, Jan 05, 2018 at 03:00:43PM -0500, John Ratliff wrote: >> sudo EDITOR=vim vipw > Defaultsenv_reset > Defaults:greg !env_reset That basically keeps the *whole* environment, what is usually a security issue. Better solution is to keep on

Re: vipw and vigr default editor

2018-01-05 Thread Roberto C . Sánchez
On Fri, Jan 05, 2018 at 03:00:43PM -0500, John Ratliff wrote: > 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. > >

Re: vipw and vigr default editor

2018-01-05 Thread Greg Wooledge
On Fri, Jan 05, 2018 at 03:00:43PM -0500, John Ratliff wrote: > 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? By default, sudo strips all the useful var

vipw and vigr default editor

2018-01-05 Thread John Ratliff
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

Re: mc using nano when vim.tiny is my default editor?

2016-10-07 Thread Bob Bernstein
Almost forgot: in mc's "Options" drop-down menu, uncheck "Use internal editor." (My taste is to use mc's internal viewer, so I leave that box checked.) -- IMPORTANT: This email is intended for the use of the individual addressee(s) named above and may contain information that is confidential,

Re: mc using nano when vim.tiny is my default editor?

2016-10-07 Thread Bob Bernstein
Put in your ~/.bashrc lines like this: export EDITOR="vim.tiny" export VISUAL=$EDITOR Exit the current login session and then log in again, or load the new contents of ~/.bashrc with $ . ~/.bashrc Convince yourself that all is well in the environment with: $ env -- IMPORTANT: This email is

Re: mc using nano when vim.tiny is my default editor?

2016-10-07 Thread Anthony Baldwin
On 10/07/2016 06:11 PM, David Wright wrote: On Fri 07 Oct 2016 at 17:46:15 (-0400), Tony Baldwin wrote: On 10/07/2016 05:38 PM, Adrian Bunk wrote: On Fri, Oct 07, 2016 at 05:23:00PM -0400, Tony Baldwin wrote: Why is mc using nano when vim.tiny is set as my editor upon update-alternatives --c

Re: mc using nano when vim.tiny is my default editor?

2016-10-07 Thread Anthony Baldwin
On 10/07/2016 05:58 PM, Adrian Bunk wrote: On Fri, Oct 07, 2016 at 05:46:15PM -0400, Tony Baldwin wrote: On 10/07/2016 05:38 PM, Adrian Bunk wrote: On Fri, Oct 07, 2016 at 05:23:00PM -0400, Tony Baldwin wrote: Why is mc using nano when vim.tiny is set as my editor upon update-alternatives --

Re: mc using nano when vim.tiny is my default editor?

2016-10-07 Thread Anthony Baldwin
On 10/07/2016 05:57 PM, Charlie wrote: On Fri, 7 Oct 2016 17:46:15 -0400 Tony Baldwin sent: Apparently nothing, but when I do update-alternatives to set it, It shows that vim.tiny is currently the chosen default (visudo uses it) How do I set $EDITOR if not with update-alternatives?

Re: mc using nano when vim.tiny is my default editor?

2016-10-07 Thread Tony Baldwin
On 10/07/2016 05:58 PM, Adrian Bunk wrote: export EDITOR=vim.tin I've learned recently whil using this to configure $PATH, Tat this is going to set it for the current session only. How can I make it permanent? thanks, Tony -- http://tonybaldwin.me all tony, all the time

Re: mc using nano when vim.tiny is my default editor?

2016-10-07 Thread David Wright
On Fri 07 Oct 2016 at 17:46:15 (-0400), Tony Baldwin wrote: > On 10/07/2016 05:38 PM, Adrian Bunk wrote: > >On Fri, Oct 07, 2016 at 05:23:00PM -0400, Tony Baldwin wrote: > >>Why is mc using nano when vim.tiny is set as my editor upon > >>update-alternatives --config editor?, and, of course, mc is s

Re: mc using nano when vim.tiny is my default editor?

2016-10-07 Thread Adrian Bunk
On Fri, Oct 07, 2016 at 05:46:15PM -0400, Tony Baldwin wrote: > On 10/07/2016 05:38 PM, Adrian Bunk wrote: > > On Fri, Oct 07, 2016 at 05:23:00PM -0400, Tony Baldwin wrote: > > > Why is mc using nano when vim.tiny is set as my editor upon > > > update-alternatives --config editor?, and, of course,

Re: mc using nano when vim.tiny is my default editor?

2016-10-07 Thread Charlie
On Fri, 7 Oct 2016 17:46:15 -0400 Tony Baldwin sent: > Apparently nothing, but when I do update-alternatives to set it, It > shows that vim.tiny is currently the chosen default (visudo uses it) > How do I set $EDITOR if not with update-alternatives? After contemplation, my reply is: I u

Re: mc using nano when vim.tiny is my default editor?

2016-10-07 Thread Tony Baldwin
On 10/07/2016 05:38 PM, Adrian Bunk wrote: On Fri, Oct 07, 2016 at 05:23:00PM -0400, Tony Baldwin wrote: Why is mc using nano when vim.tiny is set as my editor upon update-alternatives --config editor?, and, of course, mc is set to NOT use mcedit, its internal editor What does "echo $EDITOR" sa

Re: mc using nano when vim.tiny is my default editor?

2016-10-07 Thread Adrian Bunk
On Fri, Oct 07, 2016 at 05:23:00PM -0400, Tony Baldwin wrote: > Why is mc using nano when vim.tiny is set as my editor upon > update-alternatives --config editor?, and, of course, mc is set to NOT use > mcedit, its internal editor What does "echo $EDITOR" say in your shell? The update-alternative

mc using nano when vim.tiny is my default editor?

2016-10-07 Thread Tony Baldwin
Why is mc using nano when vim.tiny is set as my editor upon update-alternatives --config editor?, and, of course, mc is set to NOT use mcedit, its internal editor tony -- http://tonybaldwin.me all tony, all the time

Re: default editor

2003-03-20 Thread Pigeon
On Wed, Mar 19, 2003 at 03:39:58PM -0800, Craig Dickson wrote: > Alan Shutko wrote: > > > Will Yardley <[EMAIL PROTECTED]> writes: > > > > > Alan Shutko <[EMAIL PROTECTED]>: > > > > > >> Some programs use VISUAL, some EDITOR, some both... the distinction > > >> between them has long been lost. >

Re: default editor

2003-03-19 Thread Michael Heironimus
On Wed, Mar 19, 2003 at 07:41:07PM -0500, Alan Shutko wrote: > Craig Dickson <[EMAIL PROTECTED]> writes: > > > And by way of illustrating just how worthless the distinction is these > > days... when was the last time you actually used a line editor > > interactively? > > It's been a couple years,

Re: default editor

2003-03-19 Thread Alan Shutko
Craig Dickson <[EMAIL PROTECTED]> writes: > And by way of illustrating just how worthless the distinction is these > days... when was the last time you actually used a line editor > interactively? It's been a couple years, but I've been known to use it to fix a broken system... 8^) -- Alan Shut

Re: default editor

2003-03-19 Thread Michael Wardle
On Thu, 20 Mar 2003 00:20:39 +0100 "Marco d'Itri" <[EMAIL PROTECTED]> wrote: > On Mar 19, Will Yardley <[EMAIL PROTECTED]> wrote: > >Yes, but mutt (normally) obeys VISUAL if present - it's only the > >Debian package which seems not to. > Maybe you think this because the debian package is a 1.5 sn

Re: default editor

2003-03-19 Thread Michael Wardle
provide reference to authoritative documentation about > the correct semantics of $EDITOR and $VISUAL (I could not find any) > and a patch implementing this. The first relevant document I found was the tcsh manual page[1], which states that: EDITOR The pathname to a default edito

Re: default editor

2003-03-19 Thread Will Yardley
Alan Shutko wrote: > Will Yardley <[EMAIL PROTECTED]> writes: >> The patch (to init.c) seems to be: >> >>Tempdir = safe_strdup ((p = getenv ("TMPDIR")) ? p : "/tmp"); >> - Editor = safe_strdup ((p = getenv ("EDITOR")) ? p : "vi"); >> + Editor = safe_strdup ((p = getenv ("EDITOR")) ? p : "/u

Re: default editor

2003-03-19 Thread Craig Dickson
Alan Shutko wrote: > Will Yardley <[EMAIL PROTECTED]> writes: > > > Alan Shutko <[EMAIL PROTECTED]>: > > > >> Some programs use VISUAL, some EDITOR, some both... the distinction > >> between them has long been lost. > > > > Perhaps, but EDITOR is supposed to be your line editor, and VISUAL your >

Re: default editor

2003-03-19 Thread Marco d'Itri
On Mar 19, Will Yardley <[EMAIL PROTECTED]> wrote: [FYI: since somebody asked about it, bidirectional gating will be enabled for all linux.debian.* newsgroups hopefully before the end of the month, as soon as I can change what is needed in the software. News->mail gating for linux.debian.user will

Re: default editor

2003-03-19 Thread Alan Shutko
Will Yardley <[EMAIL PROTECTED]> writes: > The patch (to init.c) seems to be: > >Tempdir = safe_strdup ((p = getenv ("TMPDIR")) ? p : "/tmp"); > - Editor = safe_strdup ((p = getenv ("EDITOR")) ? p : "vi"); > + Editor = safe_strdup ((p = getenv ("EDITOR")) ? p : "/usr/bin/editor"); >Visua

Re: default editor

2003-03-19 Thread Will Yardley
[ Bcc to md at linux.it; package maintainer see http://lists.debian.org/debian-user/2003/debian-user-200303/msg03514.html] In linux.debian.user, you wrote: > [EMAIL PROTECTED] (Will Yardley) writes: >> Shouldn't VISUAL (if present) override /usr/bin/editor as the >> default full-screen editor?

Re: gmane.org (was Re: default editor)

2003-03-19 Thread Faheem Mitha
On Wed, 19 Mar 2003 21:04:25 + (UTC), Faheem Mitha <[EMAIL PROTECTED]> wrote: > On Tue, 18 Mar 2003 21:15:28 -0800, Will Yardley <[EMAIL PROTECTED]> wrote: >> [ Tried to post to linux.debian.user, but apparently this doesn't work >> at the moment, unfortunately. ] > > Try the public access ne

gmane.org (was Re: default editor)

2003-03-19 Thread Faheem Mitha
On Tue, 18 Mar 2003 21:15:28 -0800, Will Yardley <[EMAIL PROTECTED]> wrote: > [ Tried to post to linux.debian.user, but apparently this doesn't work > at the moment, unfortunately. ] Try the public access newsserver gmane.org. For more information see the web page of the same name. The group corre

Re: default editor

2003-03-19 Thread Alan Shutko
[EMAIL PROTECTED] (Will Yardley) writes: > Shouldn't VISUAL (if present) override /usr/bin/editor as the > default full-screen editor? Some programs use VISUAL, some EDITOR, some both... the distinction between them has long been lost. Set them both and it'll work almost everywhere. -- Alan Sh

Re: default editor

2003-03-19 Thread Paul Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Mar 18, 2003 at 09:15:28PM -0800, Will Yardley wrote: > [ Tried to post to linux.debian.user, but apparently this doesn't work > at the moment, unfortunately. ] linux.debian.user (and for that matter, any of the other newsgroups this mailing l

default editor

2003-03-18 Thread Will Yardley
[ Tried to post to linux.debian.user, but apparently this doesn't work at the moment, unfortunately. ] I noticed that when I have /usr/bin/editor set to nano on a system, but I have: export VISUAL=vim in my environment, mutt still seems to use nano as the editor; however if I put: export EDITOR=vi

Re: changing default editor

2001-11-23 Thread Brian Nelson
Brian Nelson <[EMAIL PROTECTED]> writes: > John Griffiths <[EMAIL PROTECTED]> writes: > > > Hi all > > > > tryng to change the default editor on a potato 2.2.r4 system so users > > who're not comfortable with vi can use mutt to send messages >

Re: changing default editor

2001-11-22 Thread Brian Nelson
John Griffiths <[EMAIL PROTECTED]> writes: > Hi all > > tryng to change the default editor on a potato 2.2.r4 system so users > who're not comfortable with vi can use mutt to send messages > > I tried: > > EDITOR=jed; export EDITOR > > which works unt

changing default editor

2001-11-22 Thread John Griffiths
Hi all tryng to change the default editor on a potato 2.2.r4 system so users who're not comfortable with vi can use mutt to send messages I tried: EDITOR=jed; export EDITOR which works until the user logs out any thoughts on making it stick? regs, John

Re: How to set vim as default editor

2001-04-30 Thread Ilya Martynov
M> For some reason after installing and reinstalling vim, ae still remains M> the default editor. M> when I look in /etc/alternatives I see: M> lrwxrwxrwx1 root root7 Apr 30 23:12 editor -> M> /bin/ae M> lrwxrwxrwx1 root root 21 Apr 30 2

Re: How to set vim as default editor

2001-04-30 Thread Pietro Cagnoni
Mark wrote: > > For some reason after installing and reinstalling vim, ae still remains > the default editor. > > when I look in /etc/alternatives I see: > lrwxrwxrwx1 root root7 Apr 30 23:12 editor -> > Is there some debian specific setup script th

Re: How to set vim as default editor

2001-04-30 Thread Martin Feeney
On Mon, 30 Apr 2001 14:26:46 Mark wrote: > For some reason after installing and reinstalling vim, ae still remains > the default editor. update-alternatives --config editor Debian provides a whole bunch of very nifty update-* scripts. Some of them are (man -k update-): update-alternati

Re: How to set vim as default editor

2001-04-30 Thread Colin Watson
Mark <[EMAIL PROTECTED]> wrote: >For some reason after installing and reinstalling vim, ae still remains >the default editor. > >when I look in /etc/alternatives I see: >lrwxrwxrwx1 root root7 Apr 30 23:12 editor -> >/bin/ae >lrwxrwxrwx1 root

How to set vim as default editor

2001-04-30 Thread Mark
For some reason after installing and reinstalling vim, ae still remains the default editor. when I look in /etc/alternatives I see: lrwxrwxrwx1 root root7 Apr 30 23:12 editor -> /bin/ae lrwxrwxrwx1 root root 21 Apr 30 23:12 editor.1.gz -> /usr/man/man

Re: Default editor at install

1999-07-30 Thread Stephen Pitts
VI. Also, I believe that ae is the default editor, although there was a heated debate on debian-devel a while back about the default editor. Our beloved VIM lost out because people said it wasn't intuitive and that it was too hard to learn . You can take my VIM when you pry it from my cold, de

Default editor at install

1999-07-30 Thread Robert Rati
It's been a while since I've last installed Debian from scratch. Is ViM the default vi clone installed? I thought it was another clone. Anyone know? Rob === [EMAI