Entering vi You must specify the type of terminal you are using before entering the vi editor. Exits a vi session without saving the editing changes. ZZ Saves and exits a vi session. Moves the cursor one character to the right. Moves the cursor forward to the beginning of the next sentence.
H Moves the cursor to the top line of the screen.
M Moves the cursor to the middle line of the screen. L Moves the cursor to the bottom line of the screen. CTRL-F Scrolls forward a screenful. CTRL-B Scrolls backward a screenful. A Places the text the user types after the last character on the current line.