-
Notifications
You must be signed in to change notification settings - Fork 153
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
More control over global template file name prefixes #106
Comments
Hm, yes I think this makes sense. Perhaps it can be done in such a way that it doesn't break everyone's configs. |
I think that if the expected prefix for the shipped templates is just hard-coded as |
Agreed. That would be a safe bet, but actually looking over the current setup, this might be a good opportunity to cleanup the variable names to make them more clear. What about the following:
And then to make it not break configs, we would still look for the two old variables and set the new ones automatically. Thoughts? |
I personally don't think the new names proposed for the first two increase clarity enough to be worth breaking people's configs. I would just recommend adding the |
I want to be able to have access to the shipped templates in your plugin, but I'd also like to have my own global templates that look like
~/.vim/templates/
of the formtemplate.ext
instead of=template=.ext
. I just changed. For me it works fine to just changeg:templates_global_name_prefix
tog:templates_name_prefix
on line 516 and just changeg:templates_name_prefix
in my.vimrc
, but it might be better to just preventg:templates_global_name_prefix
from setting the expected prefix for the shipped templates since we don't need to change file names of your shipped templates.The text was updated successfully, but these errors were encountered: