2015-07-18 17:05:45 -04:00
|
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'twig') == -1
|
|
|
|
|
2013-09-12 11:26:31 -04:00
|
|
|
" Vim filetype plugin
|
|
|
|
" Language: Twig
|
|
|
|
" Maintainer: F. Gabriel Gosselin <gabrielNOSPAM@evidens.ca>
|
|
|
|
|
|
|
|
if exists("b:did_ftplugin")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
|
|
|
setlocal comments=s:{#,ex:#}
|
|
|
|
setlocal formatoptions+=tcqln
|
|
|
|
" setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^[-*+]\\s\\+
|
|
|
|
|
2016-01-28 12:14:32 -05:00
|
|
|
if exists("b:did_ftplugin")
|
|
|
|
let b:undo_ftplugin .= "|setlocal comments< formatoptions<"
|
|
|
|
else
|
|
|
|
let b:undo_ftplugin = "setlocal comments< formatoptions<"
|
|
|
|
endif
|
2013-09-12 11:26:31 -04:00
|
|
|
|
|
|
|
" vim:set sw=2:
|
2015-07-18 17:05:45 -04:00
|
|
|
|
|
|
|
endif
|