Writing Criteria
Every guide in this repo is written to the same standard. If you're adding or editing a guide — human or AI — hold it to these.
- Plain words, real ideas. Simple language, never dumbed-down concepts. Explain jargon on first use; collect terms in the glossary.
- No hype. No marketing adjectives, no "revolutionary," no promises about what something will do for the reader.
- Honest about limits. Say what the thing can't do. State uncertainty instead of smoothing it over. Validation notes include what remains unverified.
- No invented numbers. Benchmarks, defaults, and specs are either measured or qualified with "depends on your setup." If it wasn't tested, say so.
- Checkable. Commands are meant to be run, with "Check:" blocks showing what success looks like. Sources are linked, not asserted.
- Respect the reader's setup. Call out Windows/Mac/Linux differences. Don't assume a GPU, a budget, or prior experience.
- Safety isn't skipped. Real risks get stated plainly, not buried.
- Scoped. Each guide says what it covers and points elsewhere for the rest. No guide pretends to be the whole subject.
- Structure over prose. Tables, before/after examples, symptom → fix. Scannable beats essay.
Verification notes for this guide
Everything hands-on was run on the build machine:
vim 9.1 (Debian package 2:9.1.0016-1ubuntu7.20),
driven headlessly as vim -Nu NONE -n -i NONE -es
against small fixture files, with every operation
proven by the file before, the file after, and the
diff between them. One demo — the macro — cannot be
scripted that way, because recording requires real
keystrokes; it was run on a terminal (via script)
with vim's -s key-file feeding the keys exactly as
typed. The lab (fixtures, driver run-lab.sh, the
example vimrc) ships in examples/ and its 13
transcripts are kept with the lab; re-running the
driver reproduces every transcript byte-for-byte.
Run for real, captured:
vim --version;command -v vim vimtutor; the first 8 lines of the vimtutor lesson file (01).:%s/teh/the/geover a fixture: six matches fixed across three lines; the capitalisedTehon another line survived (matching is case-sensitive), and a second pass:%s/Teh/The/gefixed it (02).:g/^DEBUG/dand:g/^$/don a log fixture;:3,4don a fresh copy (03).- Operator + motion and text objects, each diffed:
dw,ciw,ci((after2G f(),dap(04). - A macro recorded with real keystrokes
(
qa I- [ ] <Esc> j q), replayed with3@a;:registers acaptured from the same session, showing register a holding the keystrokesI- [ ] ^[j(05). - Visual block:
Ctrl-Vover 4 lines,I # <Esc>block-insert; and with$,A " # checked" <Esc>block-append at each line's own end (06). - Undo/redo proven on buffer states: after a
substitute,
undorestored a buffer byte-identical to the original;redore-applied the edit (07). - Registers:
"ayy,dd,"ap;:registerscaptured showing the deleted line in""and"1, the yank in"a, the filename in"%(08). - Cursor positions reported by vim itself:
gg→ 1,/rotor→ line 7,G→ line 9,0f,→ col 20,3G→ line 3; and word motions:gg0→ col 1,w→ col 5,w w→ col 17,b→ col 11 (09, 13). - Exits: an edit discarded with
:q!never reached the disk (diff empty); the same edit kept withZZdid (10). - The example vimrc's effects: a
:setreport showing all nine options in force, and a typed Tab becoming four spaces under the vimrc vs a real tab (^Iincat -A) under-u NONE(11). - Buffers/windows:
:lsover two buffers after a:vsplit, window count 2, andCtrl-W h/Ctrl-W lreports of the current buffer (12). - Insert entries on a one-line fixture:
Aappends at end of line,oopens a line below,Iinserts at first non-blank,Oopens a line above; and visual-line2G V j xdeleting exactly lines 2–3 (13).
Documented, not run:
- The search row of the motion report reads the cursor column as 1 in batch mode; the chapter says so, and the claim that a terminal cursor lands on the match itself is stock vim behaviour, described rather than captured.
- Plain
:q,:wq, and:xexits. Chapter 2's table includes them; only:q!andZZwere proven on disk states. i/ainsert entries in isolation (the lab'sA,o,I,Oand theciwchange establish insert entry in fact; thei/adistinction is described).- Character-wise visual selection (
v) editing — described from the line and block captures; a headless state capture cannot show a half-selected screen. - Undo branching behaviour (
g-/g+) — named in the undo chapter, not exercised; the fork it describes is documented vim behaviour. :bn/:bpbuffer cycling,Ctrl-W w, and tab pages — named in the buffers chapter, not run.- vimtutor worked end-to-end (it is interactive; its presence and opening text were captured).
- Neovim — not installed on the build machine; one signpost paragraph, nothing claimed from running it.
- GUI vim, mouse use, vimscript, and plugins — out of scope entirely, and labelled so in the guide.