Difference between revisions of "Vi Commands"

From rbachwiki
Jump to navigation Jump to search
(Created page with "''' Open file''' vi filename i Changes to insert mode esc Changes back to command mode while in insert mode '''When in insert mode, you can use the keyboard to type text as...")
(No difference)

Revision as of 21:09, 27 January 2019

Open file

vi filename
i Changes to insert mode
esc Changes back to command mode while in insert mode

When in insert mode, you can use the keyboard to type text as required, but when finished you must press the Esc key to return to command mode to perform other functions via keys on the keyboard. Quit Editor- quit the vi editor by pressing the : character and entering q!, which then returns the user to the shell prompt: