Mercurial > vim
comparison runtime/scripts.vim @ 556:f9eaf0a9872d v7.0157
updated for version 7.0157
author | vimboss |
---|---|
date | Wed, 12 Oct 2005 21:01:44 +0000 |
parents | da9142bd190a |
children | bc95c6c4bac1 |
comparison
equal
deleted
inserted
replaced
555:a5efb97bc104 | 556:f9eaf0a9872d |
---|---|
1 " Vim support file to detect file types in scripts | 1 " Vim support file to detect file types in scripts |
2 " | 2 " |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | 3 " Maintainer: Bram Moolenaar <Bram@vim.org> |
4 " Last change: 2005 Sep 20 | 4 " Last change: 2005 Oct 12 |
5 | 5 |
6 " This file is called by an autocommand for every file that has just been | 6 " This file is called by an autocommand for every file that has just been |
7 " loaded into a buffer. It checks if the type of file can be recognized by | 7 " loaded into a buffer. It checks if the type of file can be recognized by |
8 " the file contents. The autocommand is in $VIMRUNTIME/filetype.vim. | 8 " the file contents. The autocommand is in $VIMRUNTIME/filetype.vim. |
9 | 9 |
136 | 136 |
137 " Scheme scripts | 137 " Scheme scripts |
138 elseif s:name =~ 'scheme' | 138 elseif s:name =~ 'scheme' |
139 set ft=scheme | 139 set ft=scheme |
140 | 140 |
141 " CFEngine scripts | |
142 elseif s:name =~ 'cfengine' | |
143 set ft=cfengine | |
144 | |
141 endif | 145 endif |
142 unlet s:name | 146 unlet s:name |
143 | 147 |
144 else | 148 else |
145 " File does not start with "#!". | 149 " File does not start with "#!". |