sh vi mode with command mode by default

vall

Member

Reaction score: 6
Messages: 50

Hi!
/bin/sh (Almquist shell) with vi mode (set -o vi) starts every new line at insert mode.
So I must press Esc every new prompt if I want to go through history.
Is it possible to start shell prompts with "vi command (normal) mode"?
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,764
Messages: 39,365

I don't think you can change the mode. There's no mention of the ability to change it.

Code:
 The command "set -o vi"
     (or "set -V") enables vi-mode editing and places sh into vi insert mode.
 
Top