Closed matthieujacq closed 2 years ago
Hi, thanks for this PR which brings a nice feature. I'll merge it now.
Just a note though, please next time open 2 PR if you are editing 2 different things, as we could have wanted to merge only one and not the other :)
Fixes #2
The main goal of this patch is to make it possible to use vim global variables (
g:user42
andg:mail42
) to set up the name and user. Hence we can avoid conflicts with$USER
or$MAIL
from system or shell configuration file (see #2).If those variables are not set, the plugin proceeds as before.
Finally, I think the plugin should use the standard plugin structure, in order to be installed by plugin managers (like vim-plug). The
vim/
directory is then renamedplugin/
. Easy peasy.Regards.