Vim Shortcuts and Commands Quiz


Idyllic

Created 6/27/2024

1

80%

Q & A


Share This Quiz

Sources

https://devhints.io/vim
https://scaron.info/blog/vim-keyboard-shortcuts.html
https://monovm.com/blog/vim-shortcuts/
https://stackoverflow.com/questions/5400806/what-are-the-most-used-vim-commands-keypresses

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!

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?

I
i
a
A