Return to Home Page

Using Vim

Chapel Field Christian Schools

Vim is one of the text editors that's installed on many Unix-based systems. It is mode-based, which seems unusual at first. It has two primary modes: command mode and insert mode. Command mode is used for editing text, which insert mode is used for writing text. We are used to modeless editors where you can do both at any time.

Checkpoint 1: VIM Adventures

The first thing you should do is try out a game called VIM Adventures. This introduces basic Vim commands, and especially teaches you to use the h, j, k, and l keys for navigating in Vim. Keep playing until you finish Level 1 before moving on to the next tutorial. You can complete the game later if you want.

Raise your hand and have Mr. Olinda verify this checkpoint. Alternatively, you may record your screen as you complete each step from this checkpoint and submit the videos for credit.

Checkpoint 2: Interactive Vim Tutorial

Go to openvim.com and complete sections one through eighteen.

Raise your hand and have Mr. Olinda verify this checkpoint. Alternatively, you may record your screen as you complete each step from this checkpoint and submit the videos for credit.

Checkpoint 3: Launch Vim

Open your OpenBSD virtual machine (VM) and type vim "Checkpoint 3: Launch Vim" press Enter. Write a paragraph of three to five sentences telling me one thing you have enjoyed about this class and one thing you have not enjoyed about this class. Save the file and exit Vim. Open the file in less.

Raise your hand and have Mr. Olinda verify this checkpoint. Alternatively, you may record your screen as you complete each step from this checkpoint and submit the videos for credit.

Study Tips

  1. Understand that you can use the arrow keys, but that H, J, K, and L are required for certain functions.
  2. Make sure you are comfortable with the commands to create, open, edit, and save text files with Vim.
  3. Understand the different Vim modes and how to switch to them.