42Paris / 42header

42 header
Other
296 stars 108 forks source link

Ability to setup the plugin directly from the vimrc #3

Closed matthieujacq closed 2 years ago

matthieujacq commented 3 years ago

The main goal of this patch is to make it possible to use vim global variables (g:user42 and g: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 renamed plugin/. Easy peasy.

Regards.

alexandregv commented 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