Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [RFC PATCH 3/3] FAQ: sync newuser-install



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