Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #173295 > unrolled thread
| Started by | Tony Baldwin <tonybaldwin@gmx.com> |
|---|---|
| First post | 2016-10-07 23:30 +0200 |
| Last post | 2016-10-08 02:50 +0200 |
| Articles | 12 — 6 participants |
Back to article view | Back to linux.debian.user
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
| From | Tony Baldwin <tonybaldwin@gmx.com> |
|---|---|
| Date | 2016-10-07 23:30 +0200 |
| Subject | mc using nano when vim.tiny is my default editor? |
| Message-ID | <spKSl-6de-1@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | Adrian Bunk <bunk@stusta.de> |
|---|---|
| Date | 2016-10-07 23:40 +0200 |
| Message-ID | <spL22-6h3-37@gated-at.bofh.it> |
| In reply to | #173295 |
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-alternatives setting is only used when EDITOR is not set.
> tony
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
[toc] | [prev] | [next] | [standalone]
| From | Tony Baldwin <tonybaldwin@gmx.com> |
|---|---|
| Date | 2016-10-07 23:50 +0200 |
| Message-ID | <spLbH-6kI-11@gated-at.bofh.it> |
| In reply to | #173296 |
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. > >> tony > cu > Adrian > -- http://tonybaldwin.me all tony, all the time
[toc] | [prev] | [next] | [standalone]
| From | Adrian Bunk <bunk@stusta.de> |
|---|---|
| Date | 2016-10-08 00:00 +0200 |
| Message-ID | <spLln-6oj-3@gated-at.bofh.it> |
| In reply to | #173297 |
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, 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$
What does "echo $VISUAL" say in your shell?
> 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?
export EDITOR=vim.tiny
(Assuming you are using bash as shell.)
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
[toc] | [prev] | [next] | [standalone]
| From | Tony Baldwin <tonybaldwin@gmx.com> |
|---|---|
| Date | 2016-10-08 00:40 +0200 |
| Message-ID | <spLY5-6Wy-7@gated-at.bofh.it> |
| In reply to | #173298 |
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
[toc] | [prev] | [next] | [standalone]
| From | Anthony Baldwin <baldwinlinguas@gmx.com> |
|---|---|
| Date | 2016-10-08 01:00 +0200 |
| Message-ID | <spMhr-749-1@gated-at.bofh.it> |
| In reply to | #173298 |
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 --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$ > > What does "echo $VISUAL" say in your shell? tony@deathstar:~/.config/mc$ echo $VISUAL tony@deathstar:~/.config/mc$ Same as $EDITOR > >> 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? > > export EDITOR=vim.tiny > > (Assuming you are using bash as shell.) > > cu > Adrian > -- http://www.baldwinlinguas.com translations, localization, multilingual web development EN, ES, FR, PT
[toc] | [prev] | [next] | [standalone]
| From | Charlie <ariestao1@ipstarmail.com.au> |
|---|---|
| Date | 2016-10-08 00:00 +0200 |
| Message-ID | <spLln-6oj-5@gated-at.bofh.it> |
| In reply to | #173297 |
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 use vi.
In my ~/.config/mc/mc.ext I have
include/editor
Open=%var{EDITOR:vi} %f
and
# Default target for anything not described above
default/*
Open=%var{EDITOR:vi} %f
View=%var{EDITOR:vi} %f
Maybe that will assist you.
Be well,
Charlie
--
Registered Linux User:- 329524
***********************************************
What is the straight within the bent? -ZEN KOAN
***********************************************
Debian GNU/Linux - Magic indeed.
-----------------------------------------------------
[toc] | [prev] | [next] | [standalone]
| From | Anthony Baldwin <baldwinlinguas@gmx.com> |
|---|---|
| Date | 2016-10-08 00:50 +0200 |
| Message-ID | <spM7L-70p-1@gated-at.bofh.it> |
| In reply to | #173299 |
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?
>
> After contemplation, my reply is:
>
> I use vi.
>
> In my ~/.config/mc/mc.ext I have
>
> include/editor
> Open=%var{EDITOR:vi} %f
>
>
I don't find such a file.
I suppose I could create it and see what happens.
I tried, and I gkeep getting some error about a file error with that
file, because the structure of it has changed or I should copy the one
from /etc/mc (which I did).
But I'm confused where to put the above.
I see "include/editor"in several places.
When I figured to put it where I first see include/editor, I get the
complaint about the restructuring.
I put it elsehwere I get:
/usr/bin/sensible-editor: 25: /usr/bin/sensible-editor:
/usr/bin/vim.basic: not found
But I definitely have vim installed. I used it to edit the file in question.
Thanks,
Tony
--
http://www.baldwinlinguas.com
translations, localization,
multilingual web development
EN, ES, FR, PT
[toc] | [prev] | [next] | [standalone]
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Date | 2016-10-08 00:20 +0200 |
| Message-ID | <spLEJ-6Oz-7@gated-at.bofh.it> |
| In reply to | #173297 |
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.
[toc] | [prev] | [next] | [standalone]
| From | Anthony Baldwin <baldwinlinguas@gmx.com> |
|---|---|
| Date | 2016-10-08 01:00 +0200 |
| Message-ID | <spMhr-749-3@gated-at.bofh.it> |
| In reply to | #173300 |
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
[toc] | [prev] | [next] | [standalone]
| From | Bob Bernstein <poobah@ruptured-duck.com> |
|---|---|
| Date | 2016-10-08 02:40 +0200 |
| Message-ID | <spNQd-8cv-1@gated-at.bofh.it> |
| In reply to | #173306 |
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 intended for the use of the individual addressee(s) named above and may contain information that is confidential, privileged or unsuitable for overly sensitive persons with low self-esteem, no sense of humour or irrational metaphysical beliefs.
[toc] | [prev] | [next] | [standalone]
| From | Bob Bernstein <poobah@ruptured-duck.com> |
|---|---|
| Date | 2016-10-08 02:50 +0200 |
| Message-ID | <spNZT-8gy-9@gated-at.bofh.it> |
| In reply to | #173309 |
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, privileged or unsuitable for overly sensitive persons with low self-esteem, no sense of humour or irrational metaphysical beliefs.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web