Test your Vim skills and see if you have what it takes to become a Vim power user! Answer questions about Vim's features, shortcuts, and advanced techniques to prove your mastery of this powerful text editor.
1. How do you copy a line in Vim?
yy
cc
dd
pp
2. What command in Vim will help you go to the end of a file?
:w
:q
G
:e
3. Which command in Vim allows you to undo the last action?
u
Ctrl+r
dd
gg
4. How can you save changes and exit Vim?
:x
:wq
:q!
:qa
5. What is the command to search for a word in Vim?
/word
:search word
find word
?word
6. To execute a macro in Vim after recording it, which character is used?
@
#
&
$
7. How do you enter visual mode in Vim?
v
V
ctrl+v
All of the above
8. What is the command to delete a line in Vim?
yy
dd
cc
dw
9. How can you open a file for editing in Vim?
ff
of
:edit
:open
10. Which Vim command increments the number under the cursor?