On Sun, Aug 27, 2017 at 05:02:36PM +0200, Jan Stary 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?
>
> Jan
>
Yes, expected.
^R is for searching backwards in the command line history in Emacs mode
while Vi mode uses <ESC>/ (just like in the Vi editor).
It's unfortunate that binding keys (with "bind") doesn't seem to work in
Vi mode, otherwise one would be able to remap the search to whatever key
combination (as well as remapping the movement keys to allow for
movement as in ksh93).
--
Andreas Kusalananda Kähäri,
National Bioinformatics Infrastructure Sweden (NBIS),
Uppsala University, Sweden.
No comments:
Post a Comment