Permalink
Browse files

Match file pattern with jekyll

  • Loading branch information...
1 parent 2121162 commit 90b9205012356351ebbb191ab28211ed666e1b8a @ntkme ntkme committed with Sep 8, 2012
Showing with 8 additions and 3 deletions.
  1. +8 −3 ftdetect/liquid.vim
View
@@ -1,6 +1,11 @@
" Liquid
-au BufNewFile,BufRead *.liquid set ft=liquid
+au BufNewFile,BufRead *.liquid set ft=liquid
-au BufNewFile,BufRead */_layouts/*.html set ft=liquid
-au BufNewFile,BufRead *.html,*.xml,*.markdown,*.textile
+au BufNewFile,BufRead */_layouts/*.html,*/_includes/*.html set ft=liquid
+au BufNewFile,BufRead *.html,*.xml,*.textile
\ if getline(1) == '---' | set ft=liquid | endif
+au BufNewFile,BufRead *.markdown,*.mkd,*.mkdn,*.md
+ \ if getline(1) == '---' |
+ \ let b:liquid_subtype = 'markdown' |
+ \ set ft=liquid |
+ \ endif

0 comments on commit 90b9205

Please sign in to comment.