-
Notifications
You must be signed in to change notification settings - Fork 48
Closed
Description
I don't really see a way to get the version of the plugin that is loaded from within Vim.
The reason I ask, is I am testing over some of the master branch, so I have multiple directories of Magit.
Never really certain which one Vim loaded.
What I like to do in my plugins is take the standard loaded variable:
let g:loaded_magit = 1
Use the release #:
let g:loaded_magit = 160
That way from within Vim I can do:
``
:echo g:loaded_magit
It also helps when I am working with a user, trying to determine which version of my plugin is loaded.
For master you can have:
let g:loaded_magit = master
Of course, that is just one way, if there is some "Github" thing, where you could include the commit id somehow when the the user downloads, or something.
Metadata
Metadata
Assignees
Labels
No labels