Difference between revisions of "Using vi editing mode on shell"

From Notes_Wiki
(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/...")
 
m
 
Line 8: Line 8:
After this we can do the following at least:
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 + 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.   
;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
More on this at https://www.ibm.com/docs/en/aix/7.2?topic=shell-vi-editing-mode

Latest revision as of 04:52, 30 August 2022

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