Using vi editing mode on shell

From Notes_Wiki

Home > VIOS or AIX > Using vi editing mode on shell

We can use following to enable vi editing mode on shell:

set -o vi

After this we can do the following at least:

Esc + v
Escape takes to control mode and then v is for editing the line in vi. After editing we can use :wq to execute the typed command
Esc + k
Escape takes to control mode and then k takes to previous command in history.

More on this at https://www.ibm.com/docs/en/aix/7.2?topic=shell-vi-editing-mode



Home > VIOS or AIX > Using vi editing mode on shell