I am searching for a plugin manager that has the option to install specific plugins only from tags on GitHub. I don't want to need to specify the tag. I want it to automatically use the newest tag. This would be a good option for plugins that do not keep a stable master branch, but do tag releases.
1 Answer
The current version of vim-plug allows you to specify tags with wildcards and it selects the latest version (--sort -version:refname
) if multiple matching tags are found. So you can simply write *
if you want the latest tag. For example,
Plug 'fatih/vim-go', { 'tag': '*' }
And you'll see that the installer handles it as expected.
- Finishing ... Done!
- Latest tag for * -> v1.7.1 (vim-go)
- vim-go: Cloning into '/Users/jg/.vim/plugged/vim-go'...
vim-plug
's README says you can specify tags. Another way would be to setup a script that gets the latest tag and does agit checkout
on it (using stackoverflow.com/questions/1404796/…), and using it as a post-update script invim-plug
.