diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2013-09-12 17:26:31 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2013-09-12 17:26:31 +0200 |
commit | e32871fd4a8d0dca327011b81d214ab5321f853d (patch) | |
tree | 6bcc21362dd73006063f16faaa5f67e19cb09ab1 /ftplugin | |
parent | a127ca5ff2f12ae6394abf2c147bf26802be5b7d (diff) | |
download | vim-polyglot-e32871fd4a8d0dca327011b81d214ab5321f853d.tar.gz vim-polyglot-e32871fd4a8d0dca327011b81d214ab5321f853d.zip |
Add twig syntax support
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/twig.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ftplugin/twig.vim b/ftplugin/twig.vim new file mode 100644 index 00000000..506adbd6 --- /dev/null +++ b/ftplugin/twig.vim @@ -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: |