O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Vim Masterclass

Video Description

Master the vi and Vim editors on Linux, Unix, Mac, and Windows

About This Video

  • Learn to make simple edits in a command-line environment

In Detail

Did you know that 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 course was created. This course gives you the absolute shortest path to learning the basics. It's also the fastest way to learn the most advanced features, too.

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

  • Work with multiple files, including how to move data back and forth between different files, copying and 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 must-know keyboard shortcuts and 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.
  • Visually select blocks of text and edits them—for example, moving a block, deleting a block, indenting/shifting a 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.
  • Make vertical edits and use Vim's Visual Block mode. (Some people 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 to a precise location in a file very rapidly.
  • 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 graphical Vim interfaces.

When you start the course, you'll be able to use Vim almost immediately. 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

Downloading the example code for this course: You can download the example code files for all Packt video courses you have purchased from your account at http://www.PacktPub.com. If you purchased this course elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Chapter 1 : Course Introduction
    1. Course Overview 00:01:28
    2. Course Download 00:02:06
    3. What Vim Is and Why You Should Learn It 00:08:34
  2. Chapter 2 : Vim Quickstart
    1. Modes 00:02:46
    2. Vim Quickstart 00:04:32
    3. Exercise 01 Creating and Editing a New File with Vim - Walkthrough 00:04:04
  3. Chapter 3 : Vim Essentials
    1. Essential Navigation Commands 00:16:40
    2. Exercise 02 Essential Navigation Commands - Walkthrough 00:05:40
    3. Deleting Text and "Thinking in Vim" 00:12:49
    4. Exercise 03 - Deleting Text - Walkthrough 00:06:58
  4. Chapter 4 : The Vim Help System
    1. Getting Help 00:11:12
    2. Exercise 04 - Getting Help - Walkthrough 00:06:12
  5. Chapter 5 : Deleting, Yanking, and Putting
    1. Essential Navigation Commands 00:09:57
    2. Exercise 02 Essential Navigation Commands - Walkthrough 00:11:15
    3. Deleting Text and "Thinking in Vim" 00:09:03
  6. Chapter 6 : Transforming and Substituting Text
    1. Inserting, Changing, Replacing, and Joining 00:18:00
    2. Search, Find, and Replace - Part One 00:15:42
    3. Search, Find, and Replace - Part Two 00:10:18
    4. Exercise 06 - Inserting, Changing, Replacing, and Joining - Wakthrough 00:10:05
    5. Exercise 07 - Search, Find, and Replace - Walkthrough 00:05:01
  7. Chapter 7 : Text Objects and Macros
    1. Text Objects 00:12:06
    2. Exercise 08 - Text Objects - Walkthrough 00:07:07
    3. Macros 00:19:34
    4. Exercise 09 - Macros - Walkthrough 00:11:28
  8. Chapter 8 : Visual Mode
    1. Visual Mode - Part 1 00:13:07
    2. Visual Mode - Part 2 00:10:25
    3. Exercise 10 - Visual Mode - Walkthrough 00:05:05
  9. Chapter 9 : Vim Settings, Preferences, and Customizations
    1. Vim Settings and the Vimrc File - Part 1 00:22:10
    2. Vim Settings and the Vimrc File - Part 2 00:12:55
    3. Exercise 11 - Vim Settings and the Vimrc File - Walkthrough 00:04:57
  10. Chapter 10 : Vim Buffers and Windows
    1. Editing Multiple Files and Vim Buffers 00:19:50
    2. Exercise 12 - Vim Buffers - Walkthrough 00:05:16
    3. Working with Multiple Windows 00:14:53
  11. Chapter 11 : Vim Graphical User Interfaces: Gvim and MacVim
    1. Vim Graphical User Interfaces: Gvim and MacVim 00:15:05