Reference
Per-surface keymap tables: one buffer kind, one minor mode, or one language grammar each. Reach for search.
Language modes
One per bundled tree-sitter grammar: highlighting, folds, symbols, text objects.
| Topic | What it covers |
|---|---|
| text-mode | text-mode: the fallback major mode for plain text — full vim grammar, no tree-sitter parser, no LSP, no mode-scoped option overrides. |
| rust-mode | rust-mode: the major mode for Rust files (.rs) — tree-sitter highlighting, folds, symbols, and text objects. |
| python-mode | python-mode: the major mode for Python files (.py, .pyw) — tree-sitter highlighting, folds, symbols, and text objects. |
| javascript-mode | javascript-mode: the major mode for JavaScript files (.js, .mjs, .cjs) — tree-sitter highlighting, folds, symbols, and text objects. |
| typescript-mode | typescript-mode: the major mode for TypeScript files (.ts, .mts, .cts) — tree-sitter highlighting, folds, symbols, and text objects. |
| tsx-mode | tsx-mode: the major mode for TSX files (.tsx) — tree-sitter highlighting, folds, symbols, and text objects. |
| go-mode | go-mode: the major mode for Go files (.go) — tree-sitter highlighting, folds, symbols, and text objects. |
| c-mode | c-mode: the major mode for C files (.c, .h) — tree-sitter highlighting, folds, symbols, and text objects. |
| cpp-mode | cpp-mode: the major mode for C++ files (.cpp, .cc, .cxx, .hpp, .hh, .hxx) — tree-sitter highlighting, folds, symbols, and text objects. |
| java-mode | java-mode: the major mode for Java files (.java) — tree-sitter highlighting, folds, symbols, and text objects. |
| ruby-mode | ruby-mode: the major mode for Ruby files (.rb, .ruby) — tree-sitter highlighting, folds, symbols, and text objects. |
| lua-mode | lua-mode: the major mode for Lua files (.lua) — tree-sitter highlighting, folds, symbols, and text objects. |
| bash-mode | bash-mode: the major mode for Bash files (.sh, .bash, .zsh, .fish) — tree-sitter highlighting, folds, symbols, and text objects. |
| html-mode | html-mode: the major mode for HTML files (.html, .htm, .xhtml) — tree-sitter highlighting, folds, symbols, and text objects. |
| css-mode | css-mode: the major mode for CSS files (.css) — tree-sitter highlighting, folds, symbols, and text objects. |
| json-mode | json-mode: the major mode for JSON files (.json) — tree-sitter highlighting, folds, symbols, and text objects. |
| toml-mode | toml-mode: the major mode for TOML files (.toml) — tree-sitter highlighting, folds, symbols, and text objects. |
| yaml-mode | yaml-mode: the major mode for YAML files (.yaml, .yml) — tree-sitter highlighting, folds, symbols, and text objects. |
| sql-mode | sql-mode: the major mode for SQL files (.sql) — tree-sitter highlighting, folds, symbols, and text objects. |
| markdown-mode | markdown-mode: the major mode for .md files AND for every help buffer — hand-written highlight queries, folds by section. |
| wit-mode | wit-mode: the major mode for WIT files (.wit) — tree-sitter highlighting and folds for the WebAssembly Interface Type language. |
Magit buffers & chords
Every magit buffer kind, plus the shared minor modes that carry chords across all of them.
| Topic | What it covers | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| magit-core-mode | magit-core-mode: the shared minor mode active in every magit buffer — gr to refresh, q to close, ]]/[[ to move between sections, TAB to fold, S/U/C/i/yr for repo-level operations, and A/_/O to act on the commit under the cursor. Diff-content chords, including ]f/[f, live on magit-hunk-mode. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| magit-nav-mode | magit-nav-mode: the magit chords that are safe in any buffer — section navigation and folding, split out so editable magit views can have them without the bare letters. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| magit-hunk-mode | magit-hunk-mode: the shared minor mode active in every magit buffer that renders a diff — s/u/x to stage, unstage and discard the hunk at cursor, a/- to move one hunk of a commit, ]c/[c to navigate, | magit-global-mode | magit-global-mode: the always-active entry chords — C-x g opens magit-status, C-c g the repo dispatch transient, C-c f the file dispatch transient. | magit-diff-mode | magit-diff-mode: a read-only diff buffer with line-, hunk- and file-level stage/unstage (s/u) — repo-wide against HEAD, or scoped to one file and one baseline. | magit-commit-mode | magit-commit-mode: the commit compose buffer — a read-only staged diff on top, an editable message below, C-c C-c to commit and C-c C-k to abort. | magit-revision-mode | magit-revision-mode: one historical commit in full — git show —stat -p, opened by | magit-file-revision-mode | magit-file-revision-mode: one file's content at one fixed reference — a commit SHA, or the index ( | staged). Read-only, never opened directly.magit-log-mode | magit-log-mode: the commit history graph — git log —oneline —graph —decorate, | magit-blame-mode | magit-blame-mode: a minor mode that annotates the file you are reading with a heading above each run of lines sharing a commit — your code keeps its syntax highlighting. | magit-refs-mode | magit-refs-mode: every branch, remote-tracking branch and tag in one buffer, with each branch's ahead/behind against its upstream. | magit-branch-mode | magit-branch-mode: the local branch list — | magit-remote-mode | magit-remote-mode: the configured remotes with their URLs — a adds, r renames, d removes, u sets the URL, p prunes. | magit-submodule-mode | magit-submodule-mode: the configured submodules with git's own status marker — a adds, u updates, s syncs, d removes (asks first). | magit-stash-mode | magit-stash-mode: the stash list — a apply, p pop, d drop (asks first), z create, | magit-stash-show-mode | magit-stash-show-mode: one stash's patch — git stash show -p, opened by | magit-rebase-mode | magit-rebase-mode: the interactive rebase todo — an editable pick list built from real history, C-c C-c to run it, C-c C-k to abort (asks first). | magit-notes-mode | magit-notes-mode: the note attached to one commit, as an editable buffer. C-c C-c saves, C-c C-k closes without saving; clearing the buffer removes the note. | magit-cherry-mode | magit-cherry-mode: which of your commits are not upstream yet, and which already are under a different SHA. | Project diff | magit-project-diff-mode: identity marker for the project-diff view — every changed file as one editable multibuffer. | Completion & snippetsThe completion gate, the popup keymap, and each source that feeds candidates into it.
|