Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [RFC PATCH 3/3] FAQ: sync newuser-install
- X-seq: zsh-workers 50558
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [RFC PATCH 3/3] FAQ: sync newuser-install
- Date: Thu, 1 Sep 2022 03:21:22 +0200
- Archived-at: <https://zsh.org/workers/50558>
- In-reply-to: <CAH+w=7axKWJG5cVbx+QDo2fEo2k00L3y4sN3-UhDofVkmY8n2w@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- References: <CAMP44s1eWfZU1WowcJ8cGwVzNpY=zebh9ETqahGgX4fJPfKq=Q@mail.gmail.com> <CAHYJk3QMc73SjZq47C-pX=zRkt+GHkvr7Xyg3CcPzfH+3Jg0EA@mail.gmail.com> <CAH+w=7b9i0xLb+hRuGyod=JOCnFDT3=tTEb_ihWU7JVftUTm7A@mail.gmail.com> <CAMP44s2tW9dG9zZoNFjvx7G_CW=fr2c9GoSK9fHa4=NCbXnEDw@mail.gmail.com> <c751aa82-e303-4358-b39c-bed85cea3e48@www.fastmail.com> <CAMP44s0+HStHBFsjA28dJfZwNHOaosHTBVo4BjFgN5BbuMgGTQ@mail.gmail.com> <20220831122842.GC992100@zira.vinc17.org> <CAH+w=7bd+XYR6nOFj0iY-0b50Wpz_9c1yGV98acutpzamWSkkw@mail.gmail.com> <20220901002300.GD992100@zira.vinc17.org> <CAH+w=7axKWJG5cVbx+QDo2fEo2k00L3y4sN3-UhDofVkmY8n2w@mail.gmail.com>
On 2022-08-31 17:35:19 -0700, Bart Schaefer wrote:
> On Wed, Aug 31, 2022 at 5:28 PM Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> >
> > On 2022-08-31 12:36:06 -0700, Bart Schaefer wrote:
> > > (Isn't "bindkey -e" already the default? Is this just to overcome
> > > having EDITOR=vim or some such?)
> >
> > Unfortunately, it isn't (at least not with "zsh -f", for which the
> > only possibility is to type "bindkey -e").
>
> Really?
>
> Src/zsh -f
> % echo $EDITOR $VISUAL
>
> % bindkey > /tmp/zsh-default-bindkey
> % bindkey -e
> % bindkey > /tmp/zsh-emacs-bindkey
> % diff /tmp/zsh*key
> %
I get differences. But they disappear if I unset EDITOR and VISUAL.
Well... I get the vi bindings only on some of my machines, despite
the same configuration.
In addition to these names, either `emacs' or `viins' is
also linked to the name `main'. If one of the VISUAL or
EDITOR environment variables contain the string `vi' when
the shell starts up then it will be `viins', otherwise it
will be `emacs'. [...]
Really? This is silly! Just because my login name contains "vi"
on some machines, I get the vi bindings.
zira:~> echo $EDITOR
/home/vinc17/bin/eclient
I suppose that it should take the first word and get the tail (:t).
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author