Configuring a Vim Session

15 minutes
  • 3 Learning Objectives

About this Hands-on Lab

Vim provides a number of window management options, so you can view multiple files in split panes, across tabs, or organized in a combination of the two. In this lab, you’ll take an existing Node.js project and generate a Vim session for it, so that all files open in the desired manner when the session is restored.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Set Up the Vim Window

Open Vim and set up the required files so the screen is as described in the instructions.

Create a Session

From inside Vim, create a new Vim session.

Confirm the Session

Exit Vim and check that the session has been created by looking for the generated file, and then reopen the session.

Additional Resources

You are a backend developer using Vim to edit a legacy application. You know you'll have to return to this application repeatedly throughout the next few weeks, and you want to make it as painless as possible while accessing the application in Vim. As such, you wish to create a Vim session that matches the following requirements:

  • server.js and the Dockerfile are split to one side of the screen, with one file on top of the other.
  • app.js should be split on the other side of the screen.
  • package.json should be open in its own tab.

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?