summaryrefslogtreecommitdiffstats
path: root/ftplugin/htmldjango.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-24 10:50:19 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-24 10:50:19 +0200
commite2bbed8acc1f1cf498a0085cf771cf9bf40fb709 (patch)
tree001f4955c399ac71b34fa38f2a3bd63526df50d6 /ftplugin/htmldjango.vim
parent6b4da2753814cc61cd842c589d829f03cd7ca98d (diff)
downloadvim-polyglot-e2bbed8acc1f1cf498a0085cf771cf9bf40fb709.tar.gz
vim-polyglot-e2bbed8acc1f1cf498a0085cf771cf9bf40fb709.zip
Fix django highlighting, fixes #553
Diffstat (limited to 'ftplugin/htmldjango.vim')
-rw-r--r--ftplugin/htmldjango.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/ftplugin/htmldjango.vim b/ftplugin/htmldjango.vim
new file mode 100644
index 00000000..55489c0f
--- /dev/null
+++ b/ftplugin/htmldjango.vim
@@ -0,0 +1,17 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'htmldjango') == -1
+
+" Vim filetype plugin file
+" Language: Django HTML template
+" Maintainer: Dave Hodder <dmh@dmh.org.uk>
+" Last Change: 2007 Jan 25
+
+" Only use this filetype plugin when no other was loaded.
+if exists("b:did_ftplugin")
+ finish
+endif
+
+" Use HTML and Django template ftplugins.
+runtime! ftplugin/html.vim
+runtime! ftplugin/django.vim
+
+endif