Add twig syntax support

This commit is contained in:
Adam Stankiewicz
2013-09-12 17:26:31 +02:00
parent a127ca5ff2
commit e32871fd4a
4 changed files with 133 additions and 0 deletions

18
ftplugin/twig.vim Normal file
View File

@@ -0,0 +1,18 @@
" Vim filetype plugin
" Language: Twig
" Maintainer: F. Gabriel Gosselin <gabrielNOSPAM@evidens.ca>
if exists("b:did_ftplugin")
finish
endif
runtime! ftplugin/html.vim ftplugin/html*.vim ftplugin/html/*.vim
unlet! b:did_ftplugin
setlocal comments=s:{#,ex:#}
setlocal formatoptions+=tcqln
" setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^[-*+]\\s\\+
let b:undo_ftplugin .= "|setl cms< com< fo<"
" vim:set sw=2: