mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-14 22:43:49 -05:00
Add twig syntax support
This commit is contained in:
18
ftplugin/twig.vim
Normal file
18
ftplugin/twig.vim
Normal 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:
|
||||
Reference in New Issue
Block a user