diff options
Diffstat (limited to 'runtime/scripts.vim')
-rw-r--r-- | runtime/scripts.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/scripts.vim b/runtime/scripts.vim index 62ea472d4..d20ab09ad 100644 --- a/runtime/scripts.vim +++ b/runtime/scripts.vim @@ -234,6 +234,10 @@ else elseif s:line1 =~ '\<DTD\s\+XHTML\s' set ft=xhtml + " HTML (e.g.: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN") + elseif s:line1 =~? '\<DOCTYPE\s\+html\>' + set ft=html + " PDF elseif s:line1 =~ '^%PDF-' set ft=pdf |