Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Installing mustache.vim

mustache.vim

In your shell:

cd ~/.vim
git clone git://github.com/juvenn/mustache.vim.git
mv mustache.vim/syntax/* syntax/
mv mustache.vim/indent/* indent/
mv mustache.vim/ftdetect/* ftdetect/
rm -rf mustache.vim
d2s commented Jan 19, 2011

When trying to use aforementioned wget command, the program complains:

ERROR: certificate common name `*.github.com' doesn't match requested host name `github.com'.
To connect to github.com insecurely, use `--no-check-certificate'.
avidal commented Jan 25, 2011

Getting anything on github over wget results in the same error. It's a bit of a pain in the ass.

rsp commented Feb 2, 2011

Following the instructions in this gist will install an old version (from 2009 Oct 15) of only:

syntax/mustache.vim

by Juvenn Woo. See github.com/juvenn/mustache.vim for a newer version (from Jan 16th 2011 as of this writing) of all of the:

syntax/mustache.vim
indent/mustache.vim
ftdetect/mustache.vim

If you install all of those files there's no need to add anything to ~/.vim/filetype.vim for Vim to detect the file type. Also, it will use the HTML indentation rules.

I write it because this gist is linked on mustache.github.com.

juvenn commented Apr 29, 2011

Mustache.vim has been updated to support matchit, thanks to 5long. Follow the readme to update.

shime commented Jun 7, 2013

Change mv mustache.vim/indent/* indent/ to mv mustache.vim/ftplugin/* ftplugin/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment