Using vi editing mode on shell

From Notes_Wiki
Revision as of 04:52, 30 August 2022 by Saurabh (talk | contribs) (Created page with "Home > VIOS or AIX > Using vi editing mode on shell We can use following to enable vi editing mode on shell: <pre> set -o vi </pre> 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/...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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