Hello,
My default shell is ksh and there is "set -o vi" in .profile

1) When I type in a command directly in the terminal window(xterm), I can
press "Esc" and then "v" and after that my $EDITOR opens (nvim) and I am
able to make modifications to this command. Then I press "Esc" and "ZZ" in
the editor, it closes and the final command is executed.
2) When I try to do the same with the command in the shell history, this
looks different:
I press "Esc" and then "/" and then something I want to find in the
history and then "Enter". Using "n" I find the command in history and
press "Esc" and "v" to edit this command. The $EDITOR opens, I make some
modifications, then save and exit the $EDITOR, and the old command is
executed without any changes I have just made.

Is case 2 the correct behaviour or do I do something wrong?
My current system is OpenBSD 7.2 amd64

-- 
Maksim Rodin

Reply via email to