Mission 01 / 52• Basic Vim

Introduction to Vim Modes

The first key vim concept to understand is modes.

You can switch between two primary modes: normal mode and insert mode to perform different actions.

Normal Mode

Used for:

  • Moving the cursor
  • Deleting characters, words, lines, etc
  • Performing operations like Copy / Paste
1
const test = 1;
2
function sendGreeting() {
3
console.log("Hello, asdfasdf world!");
4
"complete jibberish line";
5
}

Insert Mode

Used for editing and inserting text.

You can think of insert mode as the default behavior in the editors you are already used to.

1
const test = "";

Pressing the same key can have different effects depending on which mode you are in. For example:

  • the w key in normal mode moves the cursor forward one word
  • the w key in insert mode types the character "w"

In the next few lessons, you will learn the basics of each mode and how to switch between them.

NextCtrl+jBasic Movement