vim-registry(5)
π vim-registry π
okay bestie, welcome to vim-registry(5) β a section 5 file from the vim addons manual, and it's literally all about the syntax for vim-addons registry files. it's giving config-file lore and i'm obsessed. let's get into it π«Ά
β¨ SYNOPSIS β¨
PACKAGE-NAME.yaml
πΈ DESCRIPTION πΈ
so a registry file is a multi-document YAML file β meaning it can be made up of several different YAML documents, all chillin' in the same file, separated by --- lines. and each one of those YAML documents is a registry entry, aka the info that describes a single addon. one doc, one addon. periodt. π
ideally, the registry directory has one file per package that ships addons, and the filename follows the convention PACKAGE-NAME.yaml. so a single package can contribute to the registry with multiple entries described inside one single YAML file. no cap.
for example, the vim-scripts package should ship a single /usr/share/vim/registry/vim-scripts.yaml file, and that file contains one YAML document per shipped addon. the first lines of such a file can look like this:
addon: alternate
description: "alternate pairing files (e.g. .c/.h) with short ex-commands"
basedir: /usr/share/vim-scripts/
disabledby: "let loaded_alternateFile = 1"
files:
- plugin/a.vim
- doc/alternate.txt
---
addon: whatdomain
description: "query the meaning of a Top Level Domain"
basedir: /usr/share/vim-scripts/
disabledby: "let loaded_whatdomain = 1"
files:
- plugin/whatdomain.vim
---
each registry entry may contain the following fields, and they have to be typeset according to the YAML specification. here's the field-by-field vibe check π
addon(Required) β the name of the addon.description(Required) β a human understandable textual description of the addon.files(Required) β the list of the files which compose the addon and are required to be present in a component of the Vim runtime path for the addon to be enabled. each file is specified relative to a component of the Vim runtime path.basedir(Optional) β the directory where the files shipped by the addon reside on the filesystem (i.e., where the symlinks of the user/sysadm should point to). the default is/usr/share/vim/addons.disabledby(Optional) β a Vim script command that can be used (usually by adding it to~/.vimrc) to prevent the addon from being used even when it's installed. the intended usage of this field is to "blacklist" an undesired addon whose files are available β and hence automatically loaded by Vim β in a component of the Vim runtime path.
ok so quick heads up bestie:addon,descriptionandfilesare Required, no skipping them.basediranddisabledbyare the optional lil bonus fields. and remember, everything gets typeset per the YAML spec. iykyk π
π AUTHOR π
James Vega <jamessan@debian.org>
π¦ SEE ALSO π¦
vim-addons(1), YAML specification
π COPYRIGHT π
Copyright (C) 2010 James Vega
This program is free software, you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
and that's the whole page, bestie!! π big thanks to the Debian Project for this one β it's dated January 2010 and it's the vim-registry(5) page, main character of registry syntax fr fr. go forth and write your YAML docs separated by --- like the icon you are β¨πΈπ
π¦ where this page comes from
- debian bookworm: vim-addon-manager 0.5.10 Β· GPL-3.0-or-later
- debian trixie: vim-addon-manager 0.5.11 Β· GPL-3.0-or-later
- ubuntu jammy: vim-addon-manager 0.5.10 Β· GPL-3.0-or-later
- ubuntu noble: vim-addon-manager 0.5.10ubuntu1 Β· GPL-3.0-or-later
- ubuntu questing: vim-addon-manager 0.5.11
- ubuntu resolute: vim-addon-manager 0.5.11build1 Β· GPL-3.0-or-later
- ubuntu stonking: vim-addon-manager 0.5.11build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms