comparison runtime/doc/filetype.txt @ 798:95dac6af3b3a v7.0232

updated for version 7.0232
author vimboss
date Thu, 23 Mar 2006 22:59:57 +0000
parents e180933b876a
children d8f905020502
comparison
equal deleted inserted replaced
797:a1a08851eac8 798:95dac6af3b3a
1 *filetype.txt* For Vim version 7.0aa. Last change: 2006 Mar 09 1 *filetype.txt* For Vim version 7.0aa. Last change: 2006 Mar 21
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
146 *.inc g:filetype_inc 146 *.inc g:filetype_inc
147 *.w g:filetype_w |ft-cweb-syntax| 147 *.w g:filetype_w |ft-cweb-syntax|
148 *.i g:filetype_i |ft-progress-syntax| 148 *.i g:filetype_i |ft-progress-syntax|
149 *.p g:filetype_p |ft-pascal-syntax| 149 *.p g:filetype_p |ft-pascal-syntax|
150 *.sh g:bash_is_sh |ft-sh-syntax| 150 *.sh g:bash_is_sh |ft-sh-syntax|
151 *.tex g:tex_flavor |ft-tex-plugin|
151 152
152 *filetype-ignore* 153 *filetype-ignore*
153 To avoid that certain files are being inspected, the g:ft_ignore_pat variable 154 To avoid that certain files are being inspected, the g:ft_ignore_pat variable
154 is used. The default value is set like this: > 155 is used. The default value is set like this: >
155 :let g:ft_ignore_pat = '\.\(Z\|gz\|bz2\|zip\|tgz\)$' 156 :let g:ft_ignore_pat = '\.\(Z\|gz\|bz2\|zip\|tgz\)$'
540 541
541 Since the text for this plugin is rather long it has been put in a separate 542 Since the text for this plugin is rather long it has been put in a separate
542 file: |sql.txt|. 543 file: |sql.txt|.
543 544
544 545
546 TEX *ft-tex-plugin*
547
548 If the first line of a *.tex file has the form >
549 %&<format>
550 then this determined the file type: plaintex (for plain TeX), context (for
551 ConTeXt), or tex (for LaTeX). Otherwise, the file is searched for keywords to
552 choose context or tex. If no keywords are found, it defaults to tex. You can
553 change the default by defining the variable g:tex_flavor to the format (not
554 the file type) you use most: plain or context or latex. (Currently no other
555 formats are recognized.)
556
557
545 vim:tw=78:ts=8:ft=help:norl: 558 vim:tw=78:ts=8:ft=help:norl: