Packman.vim is my simple Vim plugin/package manager. The “.vim” part of the name is a bit misleading, as it’s really just a shell script.
Why not use one of the many existing plugin managers? Well, I don’t like stuffing my Vim full of things I rarely use and would prefer to use an external tool.
As the name hints, it relies on Vim’s
packages feature. At
the time of writing, this is a relatively new feature that may not be available
on your Vim. Use
:echo has('packages') to find out.
You can use pathogen to simulate this feature if your Vim is missing it.
Using packman is dead simple. Just define the plugins you want in
and run it to install and/or update them. Packman will try to load the
configuration file from
~/.vim/ or the current directory.
./packman.sh -v will tell you:
./packman.sh [mode] mode can be: version Show last commit for all installed plugins. install Install new plugins; don't update existing. update Update existing plugins; don't update new. orphans Remove 'orphaned' packages no longer in the config. If no mode is given we will install new plugins and update existing.
I’ll be honest: packman is not perfect.
It’s very simple and only does the bare minimum, is probably not the fastest tool out there due to lack of parallelisation, and doesn’t support anything other than GitHub.
For most people, that’s actually just fine. It is for me, anyway. I’ve never checked out a specific tag of a plugin, and waiting an extra 30 seconds is perfectly fine if that will save us a lot of complexity. I also can’t remember the last time I used a Vim plugin that’s not on GitHub; I dislike git, but for better or worse, it’s the de-facto standard.