Setting Up a .vimrc File

15 minutes
  • 2 Learning Objectives

About this Hands-on Lab

The `.vimrc` file lets us describe which settings we want Vim to utilize upon opening. These are the same settings we can run manually in Vim, just compiled into a configuration file to be used by Vim. In this lab, we’ll create a basic `.vimrc` file to be used by the `cloud_user`.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create the .vimrc File

Create the .vimrc file based on the information provided.

Confirm the .vimrc File Works

Open a file in Vim to confirm that the .vimrc file is read correctly.

Additional Resources

You are a DevOps Engineer setting up configuration management for a series of servers. You wish to include a basic .vimrc file on servers that might be accessed by admins. Create a mockup .vimrc file for the cloud_user on the provided workstation that:

  • Enables terminal title
  • Enables syntax
  • Enables line numbering
  • Enables autoindent
  • Sets tabbing to four spaces
  • Enables expandtab
  • Allows for error bells and visual bells
  • Enables backups and swapfiles

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?