diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-06-25 20:13:35 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-06-25 20:13:35 +0000 |
commit | aba8857aa3dac629dc9c2a61c70bceee8b095e14 (patch) | |
tree | d2ba4671d3af28fb2b87110b7eae7b573f257904 /runtime/scripts.vim | |
parent | 7b6d4a8ce837e4a0b8484dbbacb4ebcc9995f6fb (diff) | |
download | vim-git-aba8857aa3dac629dc9c2a61c70bceee8b095e14.tar.gz |
updated for version 7.2a-00v7.2a.00
Diffstat (limited to 'runtime/scripts.vim')
-rw-r--r-- | runtime/scripts.vim | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/runtime/scripts.vim b/runtime/scripts.vim index 9e0e7b8d7..936f508e7 100644 --- a/runtime/scripts.vim +++ b/runtime/scripts.vim @@ -1,7 +1,7 @@ " Vim support file to detect file types in scripts " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last change: 2007 Apr 29 +" Last change: 2008 Apr 28 " This file is called by an autocommand for every file that has just been " loaded into a buffer. It checks if the type of file can be recognized by @@ -234,6 +234,10 @@ else elseif s:line1 =~ '\<DTD\s\+XHTML\s' set ft=xhtml + " PDF + elseif s:line1 =~ '^%PDF-' + set ft=pdf + " XXD output elseif s:line1 =~ '^\x\{7}: \x\{2} \=\x\{2} \=\x\{2} \=\x\{2} ' set ft=xxd @@ -309,6 +313,10 @@ else elseif s:line1 =~ 'exec\s\+\S*scheme' || s:line2 =~ 'exec\s\+\S*scheme' set ft=scheme + " Git output + elseif s:line1 =~ '^\(commit\|tree\|object\) \x\{40\}$\|^tag \S\+$' + set ft=git + " CVS diff else let lnum = 1 |