Monday, August 28, 2017

Re: ksh ^R vs EDITOR=vi

On Mon, Aug 28, 2017 at 09:52:56PM +0200, Jeremie Courreges-Anglas wrote:
| On Mon, Aug 28 2017, Stuart Henderson <stu@spacehopper.org> wrote:
| > 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" ...
|
| I thought about mentioning your hack in a previous mail in this thread;
| but really, this supposedly user-friendly behavior is just a pita.

So, I love vi-mode in my shell and find that setting it with EDITOR=
and/or VISUAL= is quite simple and straightforward. But I can
appreciate that it's a drag for those who want to start vi for an
editor but want emacs-style command line editing. I wouldn't mind
having `set -o vi` in my .kshrc; what's preventing us from getting rid
of this much hated feature?

Paul 'WEiRD' de Weerd

--
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
http://www.weirdnet.nl/

No comments:

Post a Comment