Like the subject, i found linux solution:
https://stackoverflow.com/a/8103835
but on windows this apparently doesn’t work.
When added file “c:\Program Files\Vim\vimfiles\snippets\javascript.snippets”, all js snippets didn’t work.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ok there is a path issue on Windows or something because of this:
g:snippets_dir is”C:\Documents and Settings\xliiv\vimfiles\snippets\,C:\Documents and Settings\xliiv\vimfiles\bundle\snipmate\snippets\”
and both snippets (plugin and my defines) dosn’t work.
but after setting it with additonal escapings in $myvimrc like this:
let g:snippets_dir=”C:\\Documents and Settings\\xliiv\\vimfiles\\snippets,C:\\Documents and Settings\\xliiv\\vimfiles\\bundle\\snipmate\\snippets”
(the same as ‘1.’ but with doubled ‘\’)
both WORKS perfect.
So my lateset WORKING line from $myvimrc is this:
let g:snippets_dir=”$HOME\vimfiles\snippets,$HOME\vimfiles\bundle\snipmate\snippets”