Vim Flashcards
1
Q
write and quit (save file and exit)
A
:wq
2
Q
undo
A
u
3
Q
jump forwards to the start of a word
A
w
4
Q
jump forwards to the end of a word
A
e
5
Q
delete (cut) a line
A
d
6
Q
delete (cut) character
A
x
7
Q
jump backwards to the start of a word
A
b
8
Q
repeat last command
A
.
9
Q
delete marked text
A
d
10
Q
switch case
A
~
11
Q
insert before the cursor
A
i
12
Q
insert at the beginning of the line
A
I
13
Q
insert (append) after the cursor
A
a
14
Q
insert (append) at the end of the line
A
A
15
Q
append (open) a new line below the current line
A
o
16
Q
append (open) a new line above the current line
A
O
17
Q
insert (append) at the end of the word
A
ea
18
Q
exit insert mode
A
Esc or Ctrl + c
19
Q
search for pattern
A
/pattern
20
Q
write (save) and quit
A
:wq or :x or ZZ
21
Q
quit and throw away unsaved changes
A
:q! or ZQ