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


Groups > linux.debian.user > #173306

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

From Anthony Baldwin <baldwinlinguas@gmx.com>
Newsgroups linux.debian.user
Subject Re: mc using nano when vim.tiny is my default editor?
Date 2016-10-08 01:00 +0200
Message-ID <spMhr-749-3@gated-at.bofh.it> (permalink)
References <spKSl-6de-1@gated-at.bofh.it> <spL22-6h3-37@gated-at.bofh.it> <spLbH-6kI-11@gated-at.bofh.it> <spLEJ-6Oz-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



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 --config editor?, and, of course, mc is set to NOT use
>>>> mcedit, its internal editor
>>> What does "echo $EDITOR" say in your shell?
>>
>> tony@deathstar:~/.config/mc$ echo $EDITOR
>>
>> tony@deathstar:~/.config/mc$
>>
>>
>> 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?
>>>
>>> The update-alternatives setting is only used when EDITOR is not set.
>
> Perhaps you have
> include/editor
>     Open=%var{EDITOR:nano} %f
> in your mc.ext file (whichever one it's reading).
>
> Thus I have:
> # Override the built-in editor which I never use
> include/editor
>     Open=%var{EDITOR:less} %f
>
> Cheers,
> David.
>

I find no mention of nano anywhere in the file in question.
I assume, now that I have copied /etc/me/mc.ext to ~/.config/mc/me.ext
that is is now using the one in ~/.config

Tony

-- 
http://www.baldwinlinguas.com
translations, localization,
multilingual web development
EN, ES, FR, PT

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


Thread

mc using nano when vim.tiny is my default editor? Tony Baldwin <tonybaldwin@gmx.com> - 2016-10-07 23:30 +0200
  Re: mc using nano when vim.tiny is my default editor? Adrian Bunk <bunk@stusta.de> - 2016-10-07 23:40 +0200
    Re: mc using nano when vim.tiny is my default editor? Tony Baldwin <tonybaldwin@gmx.com> - 2016-10-07 23:50 +0200
      Re: mc using nano when vim.tiny is my default editor? Adrian Bunk <bunk@stusta.de> - 2016-10-08 00:00 +0200
        Re: mc using nano when vim.tiny is my default editor? Tony Baldwin <tonybaldwin@gmx.com> - 2016-10-08 00:40 +0200
        Re: mc using nano when vim.tiny is my default editor? Anthony Baldwin <baldwinlinguas@gmx.com> - 2016-10-08 01:00 +0200
      Re: mc using nano when vim.tiny is my default editor? Charlie <ariestao1@ipstarmail.com.au> - 2016-10-08 00:00 +0200
        Re: mc using nano when vim.tiny is my default editor? Anthony Baldwin <baldwinlinguas@gmx.com> - 2016-10-08 00:50 +0200
      Re: mc using nano when vim.tiny is my default editor? David Wright <deblis@lionunicorn.co.uk> - 2016-10-08 00:20 +0200
        Re: mc using nano when vim.tiny is my default editor? Anthony Baldwin <baldwinlinguas@gmx.com> - 2016-10-08 01:00 +0200
          Re: mc using nano when vim.tiny is my default editor? Bob Bernstein <poobah@ruptured-duck.com> - 2016-10-08 02:40 +0200
            Re: mc using nano when vim.tiny is my default editor? Bob Bernstein <poobah@ruptured-duck.com> - 2016-10-08 02:50 +0200

csiph-web