Vim Masterclass - Searching, Finding, and Replacing - Part 2

Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Hard
Wayground Content
FREE Resource
Read more
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the basic syntax for the substitute command in Vim?
: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
Create a free account and access millions of resources
Similar Resources on Wayground
6 questions
The Complete Practical Docker Guide - Creating New Files

Interactive video
•
University
11 questions
Practical Linux Command Line 2.0 - Extra: Discover Vim

Interactive video
•
University
8 questions
Linux Administration Bootcamp: Go from Beginner to Advanced - Viewing Files and the Nano Editor

Interactive video
•
University
11 questions
Linux Crash Course for Beginners - 2023 - Linux File Editor

Interactive video
•
University
6 questions
Linux Fundamentals - Creating New Files

Interactive video
•
University
5 questions
Vim Masterclass - Macros

Interactive video
•
University
8 questions
How to 3D Model a Dodecahedron in Fusion 360

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

Interactive video
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University