Vi Commands
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: