Vim Masterclass

Video description

Do you know that most of the command-line experts use the powerful features of the Vim text editor? Learning Vim on your own can look like a daunting task, but do not worry, this course will help you. With this course, you will not only learn the Vim basics but also grasp the advanced features with ease.

The course starts with an introduction to the Vim editor, explaining its benefits in the real world. Next, you will discover essential navigation commands and the built-in help system to work smoothly with the Vim editor. Moving along, you will learn how to cut, copy, and paste data from one file to another, and move data back and forth between different files.

Next, you will practice search, find, and replace commands, and learn how to edit large blocks of text quickly and easily. Later, you will learn about the visual mode of Vim and grasp the techniques to customize Vim settings as per your preferences. Toward the end, you will view and edit multiple files at the same time using Vim's windowing system and get a chance to explore Vim's graphical user interfaces.

By the end of this course, you will be able to edit text files using the Vim editor and Vim commands.

What you will learn

  • Enable syntax highlighting for source code and configuration files
  • View multiple files at the same time using Vim’s windowing system
  • Create, save, and replay macros to normalize data
  • Enable auto-indentation to quickly clean the source code
  • Discover how to use the Graphical User Interface (GUI) version of Vim called gVim
  • Create custom shortcuts and personalized key mappings

Audience

Whether you are a system administrator, developer, database administrator, or anyone else who edits files in a command-line environment, this course is for you. When you start the course, you will be able to use the Vim editor almost immediately.

About the Author

Jason Cannon: Jason Cannon is a professional system administrator, consultant, and author. He started his career as a Unix and Linux System engineer in 1999. Since that time, he has utilized his Linux skills at companies such as Xerox, UPS, Hewlett-Packard, and Amazon.com. Additionally, he has acted as a technical consultant and independent contractor for small businesses and Fortune 500 companies.

Jason has professional experience with CentOS, RedHat Enterprise Linux, SUSE Linux Enterprise Server, and Ubuntu. He has used several Linux distributions on personal projects including Debian, Slackware, CrunchBang, and others. In addition to Linux, Jason has experience supporting proprietary Unix operating systems including AIX, HP-UX, and Solaris. He enjoys teaching others how to use and exploit the power of the Linux operating system.

Table of contents

  1. Chapter 1 : Course Introduction
    1. Course Overview
    2. Course Download
    3. What Is Vim and Why Should You Learn It?
  2. Chapter 2 : Vim Quickstart
    1. Modes
    2. Vim Quickstart
    3. Exercise One – Creating and Editing a New File with Vim - Walkthrough
  3. Chapter 3 : Vim Essentials
    1. Essential Navigation Commands
    2. Exercise Two - Essential Navigation Commands - Walkthrough
    3. Deleting Text and "Thinking in Vim"
    4. Exercise Three - Deleting Text - Walkthrough
  4. Chapter 4 : The Vim Help System
    1. Getting Help
    2. Exercise Four - Getting Help - Walkthrough
  5. Chapter 5 : Deleting, Yanking, and Putting
    1. Cutting, Copying, and Pasting
    2. Registers
    3. Exercise Five - Cutting, Copying, and Pasting - Walkthrough
  6. Chapter 6 : Transforming and Substituting Text
    1. Inserting, Changing, Replacing, and Joining
    2. Searching, Finding, and Replacing - Part 1
    3. Searching, Finding, and Replacing - Part 2
    4. Exercise Six - Inserting, Changing, Replacing, and Joining - Walkthrough
    5. Exercise Seven - Searching, Finding, and Replacing - Walkthrough
  7. Chapter 7 : Text Objects and Macros
    1. Text Objects
    2. Exercise Eight - Text Objects - Walkthrough
    3. Macros
    4. Exercise Nine - Macros - Walkthrough
  8. Chapter 8 : Visual Mode
    1. Visual Mode - Part 1
    2. Visual Mode – Part 2
    3. Exercise Ten - Visual Mode - Walkthrough
  9. Chapter 9 : Vim Settings, Preferences, and Customizations
    1. Vim Settings and the Vimrc File - Part 1
    2. Vim Settings and the Vimrc File - Part 2
    3. Exercise Eleven - Vim Settings and the Vimrc File - Walkthrough
  10. Chapter 10 : Vim Buffers and Windows
    1. Editing Multiple Files and Vim Buffers
    2. Exercise Twelve - Vim Buffers - Walkthrough
    3. Working with Multiple Windows
  11. Chapter 11 : Vim Plugins
    1. Managing Vim Plugins
  12. Chapter 12 : Vim Graphical User Interfaces: gVim and MacVim
    1. Vim Graphical User Interfaces: gVim and MacVim

Product information

  • Title: Vim Masterclass
  • Author(s): Jason Cannon
  • Release date: October 2018
  • Publisher(s): Packt Publishing
  • ISBN: 9781789955194