motions Flashcards
1
Q
h j k l
A
left, up, down, right
2
Q
w, b
W, B
A
next word, previous word
Use whitespace as the word boundary
3
Q
e, ge
E, gE
A
end of (next) word, end of previous word Use whitespace as the word boundary.
4
Q
0 (zero)
A
To first character in line
5
Q
^ (caret)
A
To first non-blank character in line
6
Q
$
A
To last character in line
7
Q
N | (s a pipe)
A
To column N
8
Q
N f{char}
A
To the Nth occurrence of {char} forward in file
9
Q
N F{char}
A
To the Nth occurrence of {char} backward in file
10
Q
N G
A
goto line N. Default is last line.
11
Q
gg
A
goto first line
12
Q
/(string)
A
Search for a match forwards - string is regex
13
Q
?(string)
A
Search for a match backwards - string is regex
14
Q
n
A
repeat last search
15
Q
N
A
repeat last search in opposite direction
16
Q
- (star character)
A
search forward for the identifier under the cursor