Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Move templates to a separate repository #121

Open
aperezdc opened this issue Sep 5, 2017 · 2 comments
Open

[RFC] Move templates to a separate repository #121

aperezdc opened this issue Sep 5, 2017 · 2 comments

Comments

@aperezdc
Copy link
Owner

aperezdc commented Sep 5, 2017

Maybe it would be a good idea to move most of the templates out to a separate repository, and keep only a small curated set in the plug-in repository. My reasoning is that:

  • It would encourage people to make their own customized templates (which, at least for me, was the idea behind the plug-in creation at first).
  • The additional repository could have every template contributed, like, ever. Users could cherry-pick the ones they want/need, or use them as inspiration for their own.
  • The main repository would be kept small and no-frills.

We already allow a list of paths for the g:templates_directory setting, so having one additional directory with more templates from a different repository would not be a problem.

@muff1nman @Lyude: WDYT about this?

@muff1nman
Copy link
Collaborator

Biggest drawback I see is that it complicates getting started as you now need to clone two repos to get the full template set and setup the variable. Also who gets to decide which templates are important enough to go in the main repo? With that said, I haven't been using vim recently, so take my thoughts with a grain of salt.

@aperezdc
Copy link
Owner Author

aperezdc commented Sep 5, 2017

@muff1nman: Good points, thanks for commenting! My take one those is:

  • The minimum set templates could be decided by checking GitHub (and maybe a couple of places more) to see what are the most used programming languages, and provide templates for those in the same repository as the plug-in; moving the rest to a new one.
  • For cloning the extra repository, I would make it work with Vim plug-in managers. If the extra templates repository is available, it would be nice that the plug-in could configure it automatically. The idea would be to make it as easy as possible.
  • Also, I would expect that an user who has been able of configuring vim-template to be fetched by their plug-in manager, they will manage to add one extra repository if they want/need the extra templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants