Mercurial > vim
diff runtime/filetype.vim @ 11400:0f8713fe20dc
Updated runtime files.
commit https://github.com/vim/vim/commit/94237495c03f919a60b262fdcd3861e1931fc45a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 23 18:40:21 2017 +0200
Updated runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 23 Apr 2017 18:45:04 +0200 |
parents | a6b9cdcde548 |
children | d183d629509e |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1,7 +1,7 @@ " Vim support file to detect file types " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2017 Apr 15 +" Last Change: 2017 Apr 20 " Listen very carefully, I will say this only once if exists("did_load_filetypes") @@ -2133,7 +2133,10 @@ au BufNewFile,BufRead ssh_config,*/.ssh/ au BufNewFile,BufRead sshd_config setf sshdconfig " Stata -au BufNewFile,BufRead *.ado,*.class,*.do,*.imata,*.mata setf stata +au BufNewFile,BufRead *.ado,*.do,*.imata,*.mata setf stata +" Also *.class, but not when it's a Java bytecode file +au BufNewFile,BufRead *.class + \ if getline(1) !~ "^\xca\xfe\xba\xbe" | setf stata | endif " SMCL au BufNewFile,BufRead *.hlp,*.ihlp,*.smcl setf smcl