Package: vim-addon-manager
Version: 0.5.6
Severity: wishlist
Tags: patch upstream
Control: affects -1 zsh-common
Dear Maintainer,
Please add zsh completion to vim-addon-manager by having the package
install the following files:
To /usr/share/zsh/vendor-completions/_vam:
[[[
#compdef vam
# Last updated for vam 0.5.6
local -a args
args=(
'(-h --help)'{-h,--help}'[show this usage message and exit]'
'(-q --query)'{-q,--query}'[be quiet and make the output more
parseable]'
'(-r --registry-dir)'{-r+,--registry-dir=}'[set the registry
directory]:registry directory:_directories'
'(-s --source-dir)'{-s+,--source-dir=}'[set the addons source
directory]:addons source directory:_directories'
'(-t --target-dir)'{-t+,--target-dir=}'[set the addons target
directory]:addons target directory:_directories'
'(-v --verbose)'{-v,--verbose}'[increase verbosity]'
'(-z --silent)'{-z,--silent}'[silent mode: suppress most of the output]'
'(-y --system-dir)'{-y+,--system-dir=}'[set the system-wide target
directory]:system-wide target directory:_directories'
'(-w --system-wide)'{-w,--system-wide}'[set target directory to the
system-wide one]'
'1:subcommand:(list status install remove disable enable files show)'
'*: :_vam_plugins'
)
_arguments -s -S : "$args[@]"
}
]]]
To /usr/share/zsh/vendor-completions/_vam_plugins:
[[[
#autoload
local expl
_wanted vim-addons-manager-plugins expl 'vim plugins managed by
vim-addons-manager' compadd - $(_call_program vam-list 'vam list --query
--silent')
]]]
With these two files in place, «vam <TAB>» completes subcommands,
options, and addons.
Cheers,
Daniel