Skip to content

Glossary

Autocmd (autocommand) — a promise registered with the editor: when this event happens, run this code. Events cover files opening and saving, text being yanked, servers attaching, and most of the editor's other moments.

Buffer — a file opened in memory. Buffers exist whether or not they are on screen; :ls lists the ones you hold.

Ex command — a command typed after a colon at the bottom of the screen (:write, :quit) and run when you press Enter. Named for the line editor ex, Vim's ancestor.

Headless — running Neovim with no screen at all, driven by commands, scripts or another program. How this guide's lab verified everything, and how other tools embed the editor.

Language server — a separate program, one per programming language, that has read your project and can answer questions about it: definitions, references, errors. Neovim ships the client that asks; you install the server.

Leader key — a prefix key you choose (often Space) for your own mappings, so personal shortcuts cannot collide with the editor's. Set with vim.g.mapleader before the mappings that use it.

Lua — the small programming language Neovim is configured and scripted in. init.lua is a Lua program; the vim table is how it reaches the editor.

Mode — the state the editor is in, deciding what keys mean: Normal (keys command), Insert (keys type), Visual (keys command a selection), Command-line (you are typing an Ex command), and a few more.

Motion — a command that moves the cursor (w a word, } a paragraph). Operators apply themselves over the ground a motion covers.

Operator — a command that acts on text: d delete, c change, y yank. Operators compose with motions and text objects — ciw, d}.

Package — the classical folder shape for plugins: pack/<group>/start/<plugin>/ under the data folder loads at startup; opt/ loads on request with :packadd.

Parser — in Tree-sitter, the small compiled library that understands one language's grammar and builds its syntax trees.

Plugin — code loaded at startup that extends the editor: new commands, behaviour or interfaces. A plugin runs with your full user powers.

Query — in Tree-sitter, a pattern file that reads a syntax tree and decides something from it — most visibly, which colour each kind of node is painted.

Register — a named clipboard inside the editor. Yanks and deletes land in registers; " names the one to use, and "+ is the system clipboard when the machine provides one.

Root marker — a file (.git, .luarc.json, and kin) whose presence marks the top of a project, used by the LSP client to decide where a project begins and whether to start a server.

Runtimepath — the list of folders Neovim loads code from at startup: its own runtime, your config, your packages and plugins.

Shada — Neovim's memory between runs (from shared data): command history, file marks, registers and jump lists, kept in the state folder.

Stdpath — the editor's name for its standard folders — config, data, state, cache — whose real locations the operating system picks and :echo stdpath('config') reports truthfully.

Syntax tree — Tree-sitter's map of a file: every piece of code a labelled node (function declaration, parameter, name), nested as the grammar nests them.

Tab page — a group of windows treated as one workspace. Not a file: per-file, in Neovim, is the buffer.

Text object — a unit of text named as a whole: iw the inner word, ip the inner paragraph, i" the inside of the quotes. Operators act on them.

Tree-sitter — the parsing system Neovim builds in: grammars per language, trees per file, and highlighting, folding and navigation read from the trees instead of guessed from patterns.

vim.pack — the plugin manager built into Neovim since 0.12: give it repository addresses in init.lua and it clones, places and loads them, and keeps a lockfile of what it fetched.

Window — a view onto a buffer. Split the screen and two windows can show two buffers, or two places in one buffer.