Are you a master of Vim shortcuts and commands? Put your skills to the test with this challenging quiz and see how many correct answers you can get out of 10!
1. What command allows you to cycle through vim windows?
^w^w
:cyclewin
Ctrl+w+n
:winnext
2. How do you save a file and then quit in vim?
:w
:q
:x
:savequit
3. Which key combination moves the screen down by one line without moving the cursor?
Ctrl+y
Ctrl+e
Ctrl+b
Ctrl+u
4. What is the command to append text after the cursor?
i
A
a
I
5. Which vim command deletes an entire line?
dd
yy
x
dw
6. How do you navigate to the end of a word in vim?
e
w
b
^
7. What key combination is used to move the cursor up a line?
h
k
j
l
8. To delete the character before the cursor, which command is used?
x
X
d
D
9. Which command pastes the yanked text in vim?
P
p
yy
d
10. How do you enter insert mode at the beginning of a line?