From 43dc9d5252d562358986bb341a97582ee89b0d09 Mon Sep 17 00:00:00 2001 From: Myron Marston Date: Thu, 6 Jan 2011 11:36:22 -0800 Subject: [PATCH] Setup mustache file autodetection based on https://gist.github.com/323622 --- Rakefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Rakefile b/Rakefile index 43f9b146..7eff4ec1 100644 --- a/Rakefile +++ b/Rakefile @@ -196,6 +196,9 @@ vim_plugin_task "molokai" do end vim_plugin_task "mustache" do sh "curl https://github.com/defunkt/mustache/raw/master/contrib/mustache.vim > syntax/mustache.vim" + File.open(File.expand_path('../ftdetect/mustache.vim', __FILE__), 'w') do |file| + file << "au BufNewFile,BufRead *.mustache setf mustache" + end end vim_plugin_task "vwilight" do sh "curl https://gist.github.com/raw/796172/724c7ca237a7f6b8d857c4ac2991cfe5ffb18087/vwilight.vim > colors/vwilight.vim"