Vim Masterclass
4.7 (2,658 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
16,782 students enrolled

Vim Masterclass

Mastering the vi and Vim Editors on the Linux, Unix, Mac, and Windows Operating Systems
Bestseller
4.7 (2,658 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
16,782 students enrolled
Created by Jason Cannon
Last updated 7/2020
English
English [Auto], French [Auto], 1 more
  • Portuguese [Auto]
Current price: $139.99 Original price: $199.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 6.5 hours on-demand video
  • 13 articles
  • 13 downloadable resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Edit plain text files quickly and efficiently using the Vim text editor.
Course content
Expand all 49 lectures 07:11:53
+ Course Introduction
3 lectures 12:26

In this lesson you will be introduced to some of the topics that you will learn in the Vim Masterclass course.

Preview 01:28

Download the demonstration example files, practice exercise instructions, and the files required to complete the Vim practice exercises.

Course Download
02:24

Here is why you should use the Vi or Vim editor instead of any other editors such as Emacs or Nano.

Preview 08:34
+ Vim Quickstart
4 lectures 12:36

In this lesson, you will be introduced to the various vi/vim modes.

Preview 02:46

In this lesson you will learn how to:

  • Start vim

  • Exit vim / quit vim

  • Create a new file

  • Edit an existing file

  • Save a file


Vim Quickstart
04:32

The goal of this exercise is to practice creating files and editing them using the vim editor.  You'll also practice changing between the normal mode, insert mode, and command mode.  During this practice exercise you will create a new file with vim, insert some text into that file, and save it.

Exercise 01 Creating and Editing a New File with Vim
01:14

This is a demonstration of how to create files and edit them using the vim editor.  How to change between normal mode, insert mode, and command mode are demonstrated.  Also, how to create a new file with vim, insert some text into that file, and save it is demonstrated.

Exercise 01 Creating and Editing a New File with Vim - Walkthrough
04:04
+ Vim Essentials
6 lectures 48:36

In this lesson, you will learn the most import and essential file navigation commands used with the vim editor.

Vim commands covered include:

  • Home row file navigation:

    • h (Left)

    • i (Right)

    • j (Down)

    • k (Up)

  • Arrow key navigation

  • Ctrl-F (Page down) (Forward)

  • Ctrl-B (Page up) (Backward)

  • w command

  • W command

  • b command

  • B command

  • z <ENTER>

  • 0 command

  • ^ command

  • $ command

  • goto line:

    • Ngg

      • Example: 2gg

    • NG

      • Example: 2G

  • gg vs GG command

  • And more...

Essential Navigation Commands
16:39

Learn how to navigate inside a file using the vi or vim editor.

Exercise 02 Essential Navigation Commands
02:55

A demonstration of how to navigate inside a file using the vi or vim editor.

Exercise 02 Essential Navigation Commands - Walkthrough
05:39

In this lesson, you will learn how to delete text using the vim editor.

Deleting Text and "Thinking in Vim"
12:49

The goal of this exercise is to practice deleting text in a file using vi/vim.

Exercise 03 - Deleting Text
03:35

The goal of this exercise is to practice deleting text in a file using vi/vim.

Exercise 03 - Deleting Text - Walkthrough
06:58
+ The Vim Help System
3 lectures 19:26

In this lesson, you will learn how to use the built-in Vim help system to become self-sufficient.

Getting Help
11:12

The goal of this exercise is to get experience using the built-in vim help system.

Exercise 04 - Getting Help
02:02

The goal of this exercise is to get experience using the built-in vim help system.

Exercise 04 - Getting Help - Walkthrough
06:12
+ Deleting, Yanking, and Putting
4 lectures 34:28

In this Vim editor lesson you will learn how to:

  • Move text around in a file

  • Duplicate text

  • Make an in-file backup

  • Reuse the same text

  • And more...

Cut, Copy and Paste - Part I
09:57

In this lesson, you will learn about vi and vim registers.

You'll learn the various Vim register types including:

  • Unnamed

  • Named

  • Numbered

You'll also learn about the following vi/vim terminology:

  • cut, copy, paste

  • delete, yank, put

  • registers

And more...

Cut, Copy and Paste - Part 2 - Registers
11:14

The goal of this exercise is to give you practice with cut, copy, and paste operations. Additionally, you'll get a chance to work with vim registers.

Exercise 05 - Cut, Copy and Paste
04:14

The goal of this exercise is to give you practice with cut, copy, and paste operations. Additionally, you'll get a chance to work with vim registers.

Exercises 05 - Cut, Copy and Paste - Walkthrough
09:03
+ Transforming and Substituting Text
7 lectures 01:07:33

Learn the vim insert, change, replace functions/commands.

Inserting, Changing, Replacing, and Joining
17:59

Learn how to quickly find and replace text using the Vim editor.

Search, Find, and Replace - Part One
15:42

Learn how to quickly find and replace text using the Vim editor.

Search, Find, and Replace - Part Two
10:18

The goal of this exercise is to give you practice with the different ways to insert, change, replace, and join text in Vim.

Exercise 06 - Inserting, Changing, Replacing, and Joining
05:50

The goal of this exercise is to give you practice with the different ways to insert, change, replace, and join text in Vim.

Exercise 06 - Inserting, Changing, Replacing, and Joining - Wakthrough
10:05

The goal of this exercise is to practice searching, finding, and replacing text within a file using Vim.

Exercise 07 - Search, Find, and Replace
02:38

The goal of this exercise is to practice searching, finding, and replacing text within a file using Vim.

Exercise 07 - Search, Find, and Replace - Walkthrough
05:00
+ Text Objects and Macros
6 lectures 01:01:15

Learn how to become even more efficient in Vim by editing in larger logical chunks. You'll learn how to use Vim's text objects to increase your editing speed. You'll learn how to operate on:

  • Words

  • Sentences

  • Paragraphs

  • Code blocks

Text Objects
12:05

The goal of this exercise is to familiarize yourself with Vim's text objects.

Exercise 08 - Text Objects
04:03

The goal of this exercise is to familiarize yourself with Vim's text objects.

Exercise 08 - Text Objects - Walkthrough
07:07

In this lesson you will learn how to create and use macros in Vim.

Macros
19:34

The goal of this exercise is to practice creating and using macros in Vim.

Exercise 09 - Macros
07:01

The goal of this exercise is to practice creating and using macros in Vim.

Exercise 09 - Macros - Walkthrough
11:24
+ Visual Mode
4 lectures 32:28

Learn how to use Vim's visual mode.

Visual Mode - Part 1
13:06

Learn how to use Vim's visual mode.

Visual Mode - Part 2
10:25

The goal of this exercise is to practice using Vim's visual mode.

Exercise 10 - Visual Mode
03:52

The goal of this exercise is to practice using Vim's visual mode.

Exercise 10 - Visual Mode - Walkthrough
05:05
+ Vim Settings, Preferences, and Customizations
4 lectures 42:37

Learn how to make Vim start with your favorite options and settings by configuring the vimrc file.

Vim Settings and the Vimrc File - Part 1
22:10

Learn how to make Vim start with your favorite options and settings by configuring the vimrc file.

Vim Settings and the Vimrc File - Part 2
12:54

The goal of this exercise is to create your own vimrc file with your own desired customizations.

Exercise 11 - Vim Settings and the Vimrc File
02:36

The goal of this exercise is to create your own vimrc file with your own desired customizations.

Exercise 11 - Vim Settings and the Vimrc File - Walkthrough
04:57
+ Vim Buffers and Windows
4 lectures 43:59

In this lesson you will learn how to edit or view multiple files at once in Vim. Plus, you'll learn what Vim buffers are and how to manage them.

Editing Multiple Files and Vim Buffers
19:49

The goal of this exercise is to give you practice working with multiple Vim buffers.

Exercise 12 - Vim Buffers
04:02

The goal of this exercise is to give you practice working with multiple Vim buffers.

Exercise 12 - Vim Buffers - Walkthrough
05:16

Learn how to view multiple files at once using windows in Vim. You'll learn how to split your window vertically and horizontally. Plus, you'll learn how to create complex window layouts.

Working with Multiple Windows
14:52
Requirements
  • You will need access to a computer which the Vim text editor installed on it.
Description

Did you know that the most productive command line experts exploit the powerful features of the Vim text editor?

The problem is that if you want to get really good with Vim it can take you an extremely long time if you're trying to learn it on your own.

That's why the Vim Masterclass was created.

This course gives you the absolute shortest path to learning the basics. It also provides you the fastest way to learn the most advanced features, too.

By the time you finish the Vim Masterclass you'll know how to:

  • Work with multiple files, including how to move data back and forth between different files, copying & pasting from one file to another, and quickly jumping to another file.  You'll also learn how to view multiple files at the same time using Vim's windowing system.

  • Use the must-know keyboard shortcuts and how to remember them easily.  You'll actually learn how to "think in Vim" so you don't even have to memorize each and every command, saving you countless hours of work.

  • Find and replace entire blocks of information within a file.  That includes how to refactor your code by renaming all variables in a file or set of files, reliably.  Of course, you'll learn simple find and replace techniques to replace a word in an entire file and much more.

  • Cut, copy and paste.  You'll find out how to make the most of Vim's built-in clipboard system, use Vim's clipboard history, and how to access your system's clipboard from within Vim.

  • Visually select blocks of text and perform edits on those blocks like moving the block, deleting the block, indenting/shifting the block, and more.  You'll understand Vim's text objects so you can quickly select single or multiple words, lines, paragraphs, HTML/XML tags, code blocks, and more.

  • How to make vertical edits and use Vim's Visual Block Mode.  (Some call this column editing mode or rectangle mode…)

  • Enable syntax highlighting for source code, configuration files, or any type of file you edit often.  That includes how to customize the color scheme and color code text in Vim.

  • Employ simple to advanced navigation techniques so you can go exactly to where you need in a file very fast.

  • Practical application tips such as how to edit source code, scripts, HTML, and more.  You'll find lots of opportunities for practice in this course.

  • Make the most of the built-in help system to quickly find what you need, all without leaving Vim.
  • Use MacVim and gVim on Linux and Windows.  This includes learning the advantages and disadvantages of both the textual interface and the graphical interfaces to Vim.

  • Create, save, and replay macros to normalize data and quickly repeat complicated edits.  You'll learn how to append or prepend text to every line in a text file, how to format one line of text and apply that formatting to a specified area in the file and more.  In short, you'll learn how to automate everything in Vim.

  • Create custom shortcuts and personalized key mappings.  If you want to create a shortcut for something you do often, you'll find out how to make your life a whole lot easier.

  • Indent and shift blocks of text.  You'll also learn how to enable auto indentation so you can quickly clean up and prettify your source code.

  • And more...

When you start the course, you'll be able to use vim almost immediately.  I want to make sure you get up and running as quickly as possible.  That's why at the beginning of the course you'll learn how to start vim, how to make simple edits, and how to save your changes.

After that, we'll build on your knowledge and even get into some really advanced techniques such as editing multiple files at once, creating macros, making global substitutions in many files at the same time, ways to format and normalize data, how to "think in vim", and much more.

Having taught thousands of students over the years, I know people learn best by doing. That's why I've packed this course with tons of practice exercises.  For each exercise you, get detailed, step-by-step instructions.  I encourage you to try the labs on your own first.  Then I walk through the exercise while you look over my shoulder.

Not only will you learn the concepts, you'll watch me demonstrate how to put those concepts to good use, and you'll practice those new skills immediately so that you really understand and retain what you're learning.

This course is ideal for anyone who works on the command line often.  Whether you're a system administrator, a developer, a database administrator, or anyone else who has to edit files in a command line environment, this course is for you.

Even though this course does cover the graphical version of vim, it is NOT for people who are looking for "what you see is what you get" (WYSIWYG) word processing help.

No, this course is for people who want to get really efficient at editing plain text files, such as server configuration files, shell scripts, source code, and any other type of textual data.

So, if you're tired of being scared of vim, or just aren't making the progress you'd hope to by just dabbling in vim, it's time to take your vim skills to the next level by enrolling in this course.

Enroll Now!

Who this course is for:
  • Anyone who needs to edit text files in a command line environment.