This document also uses several fonts to help clarify the meaning of the text.
fixed | Literal commands you type appear in Courier font |
italic | Variables used with commands will appear in italics |
bold | Keys or elements that you must click appear in bold |
[ ] | Optional variables will appear in square brackets |
The following commands are helpful when using Vi:
u | undo the last change |
U | undo the changes made to the current line |
. | repeat your last command again |
" | return to your previous position |
' ' | return to the beginning of the line at your previous position in the document |
Ctrl + l | redraw the screen if it has been altered by output from some other program or a transmission error (such as a talk request) |
Ctrl + g | print the line number of the current line and how many lines are in the document |
% | show matching (), {}, or [] when the current character is one of the characters |
[num] J | join num lines together, starting with the current line (delete the Returns between the lines) |
:r filename | read a file into the document below the current line |
~ | change the case of the current character |