|
VI
|
h |
Move cursor to the left one character. |
+ – |
l |
Move cursor to the right one character. |
+ – |
j |
Move cursor down one line. |
+ – |
k |
Move cursor up one line. |
+ – |
^ |
Move cursor to the beginning of the line. |
+ – |
$ |
Move cursor to the end of the current line. |
+ – |
1G |
Move cursor to the first line of your document. Other numbers will move to the line specified by number (ex. 50G goes to the 50th line). |
+ – |
|
G |
Move cursor to the last line of your file. |
+ – |
CTRL U |
Move cursor up in file 12 lines. Hold down the key marked CTRL (stands for control) and type U. CTRL is like another shift key. |
+ – |
CTRL D |
Move cursor down in file 15 lines. |
+ – |
w |
Move cursor forward to the next word, stopping at punctuation. |
+ – |
W |
Move cursor forward to the next word, ignoring punctuation. |
+ – |
e |
Move cursor forward to the end of the word, stopping at punctuation. |
+ – |
E |
Move cursor forward to the end of the word, ignores punctuation. |
+ – |
b |
Move cursor backwards to the previous word, stopping at punctuation. |
+ – |
B |
Move cursor backwards to the previous word, ignores punctuation. |
+ – |
H |
Move cursor to the top line of the screen, (as opposed to the top of the document which may not be the same place). |
+ – |
M |
Move cursor to the middle of the screen. |
+ – |
L |
Move cursor to the last line on the screen. |
+ – |
% |
Move cursor to the matching parenthesis, bracket or brace. Great for debugging programs. |
+ – |
( |
Move cursor to the beginning of the previous sentence (where a punctuation mark and two spaces define a sentence). |
+ – |
) |
Move cursor to the beginning of the next sentence. |
+ – |
{ |
Move cursor to the beginning of the current paragraph. |
+ – |
} |
Move cursor to the beginning of the next paragraph. |
+ – |
; |
Repeat the last f or F command (see below). |
+ – |