vim-template
vim-template copied to clipboard
Git can't handle linux symlinks in windows,So I can't use .c template for .cpp
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
Thank you for your help!
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.
Has anyone worked on it ? I just installed vim-template on my Windows 10 machine and got the same issue.
@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.