24 lines
533 B
VimL
24 lines
533 B
VimL
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'twig') == -1
|
|
|
|
" 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\\+
|
|
|
|
if exists("b:did_ftplugin")
|
|
let b:undo_ftplugin .= "|setlocal comments< formatoptions<"
|
|
else
|
|
let b:undo_ftplugin = "setlocal comments< formatoptions<"
|
|
endif
|
|
|
|
" vim:set sw=2:
|
|
|
|
endif
|