Vim Glossary
A comprehensive guide to Vim terminology.
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.