Chapter 9: Using Text Editors

Commands:

Command Description Examples
vi editor Command Mode Initial default mode for creating and editing files, cursor positioning and modification of existing text. All commands are initiated from this mode. Pressing Esc from either of the other modes will return you to command mode.  
vi editor Entry Mode Used for entry of new text. Entering an insert command such i (insert), a (append) and o (open new line) will take you from command mode to entry mode. Pressing escape (Esc) returns to command mode. Entry commands are entered by themselves without pressing the Enter key. a, i, o, A, I, O
vi editor Last Line Mode Used for saving your work and quitting vi. Type a colon (:) to get to this mode. Pressing the Enter key to returns to command mode. :w, :wq, ZZ, :q!, :wq!