comparison runtime/doc/filetype.txt @ 530:339999b511a0 v7.0148

updated for version 7.0148
author vimboss
date Fri, 16 Sep 2005 21:55:43 +0000
parents ce2181d14aa0
children e180933b876a
comparison
equal deleted inserted replaced
529:0d6092bb72e6 530:339999b511a0
1 *filetype.txt* For Vim version 7.0aa. Last change: 2005 Aug 30 1 *filetype.txt* For Vim version 7.0aa. Last change: 2005 Sep 16
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
182 :w ~/.vim/ftdetect/mine.vim 182 :w ~/.vim/ftdetect/mine.vim
183 183
184 < 3. To use the new filetype detection you must restart Vim. 184 < 3. To use the new filetype detection you must restart Vim.
185 185
186 The files in the "ftdetect" directory are used after all the default 186 The files in the "ftdetect" directory are used after all the default
187 checks, thus they can overrule a previously detected file type. 187 checks, thus they can overrule a previously detected file type. But you
188 can also use |:setfiletype| to keep a previously detected filetype.
188 189
189 B. If you want to detect your file after the default file type checks. 190 B. If you want to detect your file after the default file type checks.
190 191
191 This works like A above, but instead of setting 'filetype' unconditionally 192 This works like A above, but instead of setting 'filetype' unconditionally
192 use ":setfiletype". This will only set 'filetype' if no file type was 193 use ":setfiletype". This will only set 'filetype' if no file type was