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

Add an option to change templates path #4

Open
pipoprods opened this issue Aug 12, 2016 · 2 comments
Open

Add an option to change templates path #4

pipoprods opened this issue Aug 12, 2016 · 2 comments

Comments

@pipoprods
Copy link

I’m using VIM in different contexts (personal & work) and need different templates for a given file type according to context.

I’m missing a way to change the way my templates are loaded.

A PR is coming.

@ap
Copy link
Owner

ap commented Aug 15, 2016

Hi, thank you for the patch. I’ve been thinking about it for a while and wondering if it might not make sense to impose a bit more policy. What kind of different values do you set this variable to in your own configuration? How does your templates directory structure look?

@pipoprods
Copy link
Author

I’m keeping all my templates in .vim/templates directory and created a "work_templates" directory for the ones I’m using at work. Most of them are just symlinks to main ones. The Perl template is different, containing a header with my company name and work email address.

.vim/templates
├── work_templates
│   ├── html -> ../html
│   ├── javascript -> ../javascript
│   ├── perl
│   ├── python -> ../python
│   └── sh -> ../sh
├── html
├── javascript
├── perl
├── plaintex -> tex
├── python
├── sh
├── tex
└── vimwiki

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