vim Flashcards
1
Q
.
A
repeat last command
2
Q
dd
A
remove line
3
Q
x
A
remove next character
4
Q
> G
A
increase indentation to end of file
5
Q
j
A
one line down
6
Q
k
A
one line up
7
Q
$
A
go to end of line
8
Q
a
A
insert after
9
Q
A
A
insert at end of current line
10
Q
C
A
clear to end of line and insert
11
Q
O
A
add line above and insert
12
Q
o
A
add line below and insert
13
Q
s
A
remove current character and insert
14
Q
;
A
next match
15
Q
f
A
find char (look ahead)
16
Q
t
A
find char (look ahead) and place cursor before it
17
Q
F
A
f, but look behind
18
Q
T
A
t, but look behind
19
Q
/pattern
A
scan (look ahead)
20
Q
?pattern
A
scan (look behind)
21
Q
:s/target/replacement
A
substitute
22
Q
qx{changes}q
A
execute a sequence of changes
23
Q
n
A
next /pattern
24
Q
N
A
prev ?pattern
25
Q
@x
A
play a series of changes again
26
Q
&
A
repeat :substitute command
27
Q
,
A
prev match
28
Q
*
A
search for the word under the cursor