On Mon, Jan 07, 2013 at 05:56:00PM +0100, Jan Stary wrote:
> On Jan 07 14:36:53, [email protected] wrote:
> > On 2013-01-07, Sébastien Marie <[email protected]> wrote:
> > >> What am I missing here? Can someone confirm this?
> > >
> > > You need to set your command-line editing mode to "emacs".
> > >
> > > In order to keep EDITOR to vi, you should set VISUAL to "emacs" in your 
> > > .profile:
> > >
> > > VISUAL=emacs
> > > EDITOR=vi
> > > export VISUAL EDITOR
> > 
> > Many programs prefer VISUAL over EDITOR, so this is only of limited help.
> 
> e.g. mutt:
> 
>   EDITOR Specifies the editor to use if VISUAL is unset.
>   VISUAL Specifies the editor to use when composing messages.
> 

I prefer vim in mutt so I just use:

alias mutt='env EDITOR=vim mutt'

Since this is on my remote server, I don't need anything else for EDITOR
or VISUAL variables.
You might or might not be able to use this method. Depends on what you
are running that depends on those two variables.

Did I mention that I asked earlier on list about same problem?
I would search the lists for similar answers.

Chris Bennett

Reply via email to