Advanced Text Editing with Vim Quiz
Test your knowledge of advanced text editing with Vim!
1. What command in Vim moves the cursor to the start of the next word?
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?
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?
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'?
8. In Vim, how can you move backward through the jump list?
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?