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

Git can't handle linux symlinks in windows,So I can't use .c template for .cpp #88

Open
blueyi opened this issue Oct 14, 2015 · 3 comments

Comments

@blueyi
Copy link

blueyi commented Oct 14, 2015

How can I configure vim-template to make me use the .c and .cpp file in one template in windows.Now in my windows os, when I create a new .cpp file I got like this
1
2

Thank you for your help!

@aperezdc
Copy link
Owner

Here's some interesting discussion about how Git handle symlinks in Windows. TL;DR they are plain text files which contain the path to the target file and has mode 120000. If the git command is available, the plugin could use git ls-files -s to determine whether a file is a “symlink”, and follow it by reading the path from the file contents.

@WillyKaze
Copy link

WillyKaze commented Mar 3, 2017

Has anyone worked on it ?
I just installed vim-template on my Windows 10 machine and got the same issue.

@aperezdc
Copy link
Owner

aperezdc commented Mar 3, 2017

@WillyKaze: As a workaround, you can manually copy the pointed-to files over the symlinks and things will work. Alternatively, you can provide also your own templates by setting the g:templates_directory option.

I think most people contributing to the code (including myself) do not use Windows. That being said, I would greatly appreciate if some Windows developer/user would send a PR that we could merge.

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

4 participants