Monday, August 28, 2017

Re: ksh ^R vs EDITOR=vi

On 2017-08-28, martin@martinbrandenburg.com <martin@martinbrandenburg.com> wrote:
> What works is to set EDITOR in your profile, then set -o emacs. The other
> order will result in the shell changing to vi mode.

That's fine until you su :)

> Or we could all set EDITOR to ed, the STANDARD text editor.

An alternative hack is "ln -s vi emacs-not-really" and use
EDITOR="emacs-not-really" ...

No comments:

Post a Comment