Re: mc using nano when vim.tiny is my default editor?
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
Reply to: