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:
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.
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.
In this lesson you will be introduced to some of the topics that you will learn in the Vim Masterclass course.
Download the demonstration example files, practice exercise instructions, and the files required to complete the Vim practice exercises.
Here is why you should use the Vi or Vim editor instead of any other editors such as Emacs or Nano.
In this lesson, you will be introduced to the various vi/vim modes.
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
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.
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.
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...
Learn how to navigate inside a file using the vi or vim editor.
A demonstration of how to navigate inside a file using the vi or vim editor.
In this lesson, you will learn how to delete text using the vim editor.
The goal of this exercise is to practice deleting text in a file using vi/vim.
In this lesson, you will learn how to use the built-in Vim help system to become self-sufficient.
The goal of this exercise is to get experience using the built-in vim help system.
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...
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...
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.
Learn the vim insert, change, replace functions/commands.
Learn how to quickly find and replace text using the Vim editor.
The goal of this exercise is to give you practice with the different ways to insert, change, replace, and join text in Vim.
The goal of this exercise is to practice searching, finding, and replacing text within a file using Vim.
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
The goal of this exercise is to familiarize yourself with Vim's text objects.
In this lesson you will learn how to create and use macros in Vim.
The goal of this exercise is to practice creating and using macros in Vim.
Learn how to use Vim's visual mode.
The goal of this exercise is to practice using Vim's visual mode.
Learn how to make Vim start with your favorite options and settings by configuring the vimrc file.
The goal of this exercise is to create your own vimrc file with your own desired customizations.
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.
The goal of this exercise is to give you practice working with multiple Vim buffers.
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.
Learn how to find, install, and use Vim plugins. (NOTE: This procedure works for Neovim as well.)
Plugins covered in this lesson include:
NERDTree
Ctrlp
Tabular
EasyMotion
Git Fugitive
In this lesson, you'll learn how to use the graphical (GUI) version of Vim, called gvim.
The contents of this lecture are so secret I'm not even allowed to describe it! Open, if you dare.
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.