Vi Commands

From rbachwiki
Revision as of 21:09, 27 January 2019 by Bacchas (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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: