Test Your Vim Skills: Essential Commands Every User Should Master


Reuben
Idyllic Icon

Reuben

Created 6/24/2024

1

73.33%

Q & A


Share This Quiz

Sources

https://vim.rtorr.com/
https://devhints.io/vim

Think you're a Vim expert? Put your skills to the test with this quiz and find out how well you know the essential commands every Vim user should master!

Think you're a Vim expert? Put your skills to the test with this quiz and find out how well you know the essential commands every Vim user should master!

1. Which command allows you to immediately exit Vim without saving changes?

:q
:wq
:x
:q!

2. To save the current file and exit Vim, you can use which command?

:w
:wq
:qa
:q

3. Which shortcut is used to enter visual mode?

v
V
<C-V>
<C-X>

4. What does the command `dd` do?

Delete a character
Delete a line
Yank a line
Paste

5. Which command pastes the content of the system clipboard in Vim?

p
P
"*p
:paste

6. How do you undo the last change?

u
<C-R>
ZZ
:q

7. What is the command to replace a single character under the cursor?

R
r
cc
ciw

8. To search for a pattern in the forward direction, which command is used?

/pattern
?pattern
:pattern
n

9. What command is used to open a new line below the current one in Vim?

O
o
i
a

10. Which of the following commands will yank (copy) the entire line?

y$
yy
yiw
yw

11. How would you repeat the last command in Vim?

:.
<C-R>
u
.

12. To exit insert mode, which shortcut can be used?

Control+C
Control+D
Control+F
Control+L

13. How do you append text after the cursor?

a
A
i
o

14. What is the command to move to the first line of the document?

G
gg
H
M

15. Which command jumps to the first occurrence of character 'x' in the line?

fx
tx
Fx
Tx