What is the basic syntax for the substitute command in Vim?
Vim Masterclass - Searching, Finding, and Replacing - Part 2

Interactive Video
•
Quizizz Content
•
Information Technology (IT), Architecture
•
University
•
Hard
Read more
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
:s/old/new/g
:s/new/old/g
:s/new/old
:s/old/new
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the G flag do in the substitute command?
Replaces occurrences in the entire file
Replaces the first occurrence on a line
Replaces occurrences in the current word
Replaces all occurrences on a line
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default range for the substitute command?
The first five lines
The current line
The entire file
The last line
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you specify a range from the current line to the last line in Vim?
%,$
1,5
.,$
1,$
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the '%' range in Vim?
To specify the first line
To specify the entire file
To specify the last line
To specify the current line
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which character can be used as a pattern separator other than '/'?
@
$
#
&
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you turn on line numbering in Vim?
:set nu
:set nonu
:set number off
:set no number
Explore all questions with a free account
Similar Resources on Quizizz
8 questions
Vim Masterclass - Exercise Twelve - Vim Buffers - Walkthrough

Interactive video
•
University
8 questions
Vim Masterclass - Exercise Two - Essential Navigation Commands - Walkthrough

Interactive video
•
University
8 questions
Vim Masterclass - Exercise Five - Cutting, Copying, and Pasting - Walkthrough

Interactive video
•
University
8 questions
Vim Masterclass - Exercise Two - Essential Navigation Commands - Walkthrough

Interactive video
•
University
8 questions
Linux Fundamentals - Editing Files Using the Vim and Nano Editors

Interactive video
•
University
8 questions
Complete Python Scripting for Automation - Editors for Python code

Interactive video
•
University
8 questions
Complete Python Scripting for Automation - Editors for Python code

Interactive video
•
University
2 questions
Vim Masterclass - Searching, Finding, and Replacing - Part 2

Interactive video
•
University
Popular Resources on Quizizz
39 questions
Respect and How to Show It

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions

Interactive video
•
6th - 8th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
Discover more resources for Information Technology (IT)
20 questions
Summer

Quiz
•
KG - University
19 questions
Minecraft

Quiz
•
6th Grade - Professio...
20 questions
3rd Grade Review

Quiz
•
KG - University
15 questions
Minecraft

Quiz
•
University
52 questions
Logos Trivia

Quiz
•
KG - University
7 questions
New national park celebrates Harriet Tubman's legacy

Interactive video
•
11th Grade - University
8 questions
2 Step Word Problems

Quiz
•
KG - University
20 questions
Disney characters

Quiz
•
KG - Professional Dev...