Bug#827627: Please support packaging vim addons as vim "packages"

Josh Triplett josh at joshtriplett.org
Sat Jun 18 22:01:05 UTC 2016

Package: vim-addon-manager
Version: 0.5.5
Severity: wishlist

[Note: in addition to changing vim-addon-manager, this would ideally go
along with some minor updates to the vim packaging policy in the vim
package; I'd be happy to supply a patch for that.]

Vim supports loading "packages", typically installed as
~/.vim/pack/$package .  A package consists of files under
~/.vim/pack/$package/start/$name/* and optionally
~/.vim/pack/$package/opt/$name/* .  The files under those directories
match the standard runtime directory layout (doc, ftdetect, ftplugin,
indent, plugin, ...).

This format has the advantage that the user can add a single directory
(or symlink) for a package, keeping all that package's files together.
The symlink doesn't need updating when the set of files in the package
change (which also makes it simpler and more robust to track in a git
home directory).  And since the directory contains a single package, it
can compile and include a tags file with helpztags, rather than having
vim-addon-manager compile a combined one at user installation time.

I would suggest installing packages under /usr/share/vim/packages, and
replacing the "files" key in the registry yaml files with "package:
pkgname", where pkgname matches the top-level directory in
/usr/share/vim/packages.  When installing a package, vim-addon-manager
should just make a single symlink from ~/.vim/pack/$pkgname to

- Josh Triplett

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages vim-addon-manager depends on:
ii  ruby        1:2.3.0+4
ii  vim-common  2:7.4.1829-1

Versions of packages vim-addon-manager recommends:
ii  vim  2:7.4.1829-1

vim-addon-manager suggests no packages.

-- no debconf information

More information about the pkg-vim-maintainers mailing list