Mastering Vim: Test Your Knowledge of Shortcuts and Best Practices!
Mastering Vim: Test Your Knowledge of Shortcuts and Best Practices!
Reuben
Created 6/25/2024
0
Q & A
Share This Quiz
Sources
Think you know all the ins and outs of Vim? Challenge yourself with this quiz, packed with questions testing your knowledge of shortcuts and best practices. Can you score a perfect 20/20?
1. Which command would you use to save and quit Vim?
:q
:w
:wq
:x
2. How do you exit insert mode?
<C-V>
<C-[>
<C-S>
<C-R>
3. What is the command to append text at the end of the line?
i
a
A
o
4. What does the command `dd` do in Vim?
Delete char and insert
Cut the current line
Yank the line
Undo changes
5. Which command pastes from the system clipboard?
p
P
*p
+p
6. How do you enter visual mode?
u
v
x
r
7. What command undoes changes in Vim?
<C-R>
ZQ
u
zz
8. Which option removes a character under the cursor?
x
yy
fo
d
9. What keybinding allows you to redo changes in Vim?
ZZ
<C-R>
A
<C-Z>
10. Which keybinding copies a line?
yy
ZZ
K
w
11. To add a new line below the current one and enter Insert mode, you would use which command?
S
A
O
o
12. Which command replaces a single character under the cursor?
r
R
s
C
13. How do you repeat the last entered command?
u
r
.
,
14. Which command deletes until the end of the line and enters Insert mode?
R
C
D
X
15. To jump to the start of a line, which key do you press?
^
$
0
h
16. How do you exit Vim without saving changes?
:qa
:q
ZQ
ZZ
17. Which command enters visual block mode?
V
<C-V>
x
<Esc>
18. What does the `u` command do?
Inserts text
Yanks to system clipboard
Undo last change
Paste after cursor
19. Which command is used to yank a word under the cursor?
yy
yw
yiw
yyiw
20. To delete the current word under the cursor, which command is used?