Navigation Menu

Skip to content

Commit

Permalink
Match file pattern with jekyll
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme authored and tpope committed Oct 12, 2012
1 parent 2121162 commit 90b9205
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions ftdetect/liquid.vim
@@ -1,6 +1,11 @@
" Liquid " 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 */_layouts/*.html,*/_includes/*.html set ft=liquid
au BufNewFile,BufRead *.html,*.xml,*.markdown,*.textile au BufNewFile,BufRead *.html,*.xml,*.textile
\ if getline(1) == '---' | set ft=liquid | endif \ 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.