A comprehensive guide to Vim terminology.

Quick Reference Cheat Sheet

Navigation (Normal Mode)

h Left
j Down
k Up
l Right
w Next word
b Previous word
0 Start of line
$ End of line

Editing (Operators)

d Delete (cut)
c Change (delete & insert)
y Yank (copy)
p Paste after cursor
u Undo
Ctrl-r Redo
x Delete character

Workflow Demo: Changing Text Inside Quotes

Understanding how operators and text objects combine is key to Vim mastery. Here is a demonstration of changing text inside quotes using ci".

Before (Cursor on 't')
const greeting = "hello [t]here";
Action: ci"

Change inside quotes. Deletes contents and enters Insert mode.

After (Insert Mode)
const greeting = "[_]";

Interactive Practice Area

Try it out!

Although this text area acts like a standard browser input, you can practice typing Vim commands mentally or use a browser extension like Vimium to practice real motions.

A-C

Buffer

A file loaded into memory. When you open a file in Vim, the content is read into a buffer. You edit the buffer, not the file directly. The file is only updated when you write the buffer to disk (e.g., using :w).

Command-Line Mode

A mode used for entering Ex commands (commands that start with :) and searching (commands that start with / or ?).

D-M

Insert Mode

The mode where you type text. Similar to standard text editors. You enter Insert mode with commands like i, a, o.

Macro

A sequence of commands recorded to a register that can be replayed. Useful for automating repetitive tasks.

Motion

A command that moves the cursor. Examples: w (move to next word), j (move down), $ (move to end of line). Motions can be combined with operators.

N-O

Normal Mode

The default mode in Vim. Used for navigation and manipulation. In this mode, keys are commands, not characters to be inserted.

Operator

A command that waits for a motion to define the range of text to act upon. Examples: d (delete), c (change), y (yank/copy). Operator + Motion = Action (e.g., dw deletes a word).

P-R

Register

A storage location for text. When you yank (copy) or delete (cut) text, it is stored in a register. You can paste from a register.

Replace Mode

A mode where new characters replace existing characters as you type. Entered with R.

S-T

Tab Page

A collection of windows. A tab page in Vim is more like a workspace or a layout of windows, rather than a tab in a web browser which represents a single file.

Text Object

A structured piece of text that can be operated on. Examples: a word (iw), a sentence (is), a paragraph (ip), or content inside quotes (i").

U-Z

Visual Mode

A mode used for selecting text. There are three types: character-wise (v), line-wise (V), and block-wise (Ctrl-v).

Window

A viewport onto a buffer. You can have multiple windows displaying the same buffer or different buffers.