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
Press Enter to start
1const test = 1;2function 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.
Press Enter to start
1const 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.
jkscroll•ggGtop/bottom•Tabnext example•Enterstart•qstop•Ctrl+kCtrl+jprev/next