Advanced Text Editing with Vim Quiz


Idyllic

Created 6/26/2024

1

80%

Q & A


Share This Quiz

Sources

https://www.freecodecamp.org/news/mastering-vim-your-guide-to-efficient-text-editing/
https://www.dinkum.nl/software/editing/
https://www.linkedin.com/pulse/advanced-vim-techniques-kumari-prerna-eu6ac
https://medium.com/@cuncis/mastering-vim-unleash-your-text-editing-potential-with-the-most-powerful-editor-8da005d141e7

Test your knowledge of advanced text editing with Vim!

Test your knowledge of advanced text editing with Vim!

1. What command in Vim moves the cursor to the start of the next word?

b
e
w
gg

2. Which command will populate the Quickfix List using the latest search pattern?

:help
:grep
:quickfix
:match

3. How can you toggle a fold in Vim using a command?

zc
zo
zz
za

4. In Vim, what command should you use to save the current session?

:w
:source
:mksession
:saveas

5. Which key command in Normal mode undoes the last change in Vim?

u
Ctrl-r
U
Ctrl-z

6. What does the 'ap' text object represent?

a paragraph
an entire document
a sentence
all text in quotes

7. Which command would you use to record a macro starting at register 'a'?

mq
qa
am
a(

8. In Vim, how can you move backward through the jump list?

Ctrl-p
Ctrl-o
Ctrl-i
Ctrl-u

9. What does the :ls command in Vim do?

Lists buffers
Displays lines
Shows line status
Lists files in directory

10. Which command allows you to yank (copy) text into a named register?

"ayiw
:yank a
"adw
"byiw