Hi Jeremie,

Am 27. August 2017 17:57:57 MESZ schrieb Jeremie Courreges-Anglas 
<j...@wxcvbn.org>:
>On Sun, Aug 27 2017, Jan Stary <h...@stare.cz> wrote:
>> This is current/amd64. I am using ksh(1) as a shell.
>> Using ^R opens a search in the command history.
>> However, with 'export EDITOR=vi', pressing ^R
>> just literarily types '^R' and does not open
>> the history search. Is that expected?
>
>EDITOR=vi puts the shell cli editor in vi mode,
> see EDITOR and VISUAL in the manpage.  
> "Traditional" but quite annoying behavior.

Shouldn't setting VISUAL override this
function of EDITOR? AFAIK most tools
look at EDITOR when choosing which
editor ("visual" or not) to spawn for things 
like commit messages and not VISUAL. 
I'd think setting EDITOR to vi (or vim) and VISUAL to emacs should give you the 
behavior you want.

Regards, Florian 

PS: I actually use ZSH (and years ago
ksh93 on OpenSolaris) with VISUAL=vi…

Reply via email to