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

Re: [PATCH] initialization of main keymap



On Fri, Sep 2, 2022 at 8:23 AM Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
>
> On 2022-09-02 08:51:10 +0000, Daniel Shahaf wrote:
> > Felipe Contreras wrote on Thu, Sep 01, 2022 at 16:58:05 -0500:
> > > most vim users use emacs key bindings in the shell.
> >
> > Citation needed.
> >
> > > In my opinion the default should always be emacs bindings, no matter what.
> >
> > +1
>
> I also think that this would be a better choice, in particular for
> users with multiple accounts, sometimes on machines with limited
> memory or basic installation, where Emacs is not installed. (In
> my case, I need to know vi/vim because this is the only one that
> is installed everywhere, and I don't want to learn to use another
> editor than Emacs or vi.)

There's also the fact that not everyone sets these variables.
Personally I never used the variable until I realized git used it and
could get rid of the core.editor configuration. A user who finds out
that EDITOR exists and sets it would certainly be surprised when
bindkeys in zsh suddenly don't work correctly.

Moreover, there's also the possibility that it's not the user the one
who set EDITOR, but the distribution or the system administrator, and
again, the user doesn't know about this variable.

-- 
Felipe Contreras




Messages sorted by: Reverse Date, Date, Thread, Author