To: vim-dev@vim.org Subject: Patch 6.1a.007 Fcc: outbox From: Bram Moolenaar MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1a.007 Problem: Filetype detection for "*.inc" doesn't work. Solution: Use a ":let" command. (David Schweikert) Files: runtime/filetype.vim *** ../vim61a.006/runtime/filetype.vim Sun Feb 24 15:47:59 2002 --- runtime/filetype.vim Tue Feb 26 17:03:43 2002 *************** *** 1,7 **** " Vim support file to detect file types " " Maintainer: Bram Moolenaar ! " Last change: 2002 Feb 24 " Listen very carefully, I will say this only once if exists("did_load_filetypes") --- 1,7 ---- " Vim support file to detect file types " " Maintainer: Bram Moolenaar ! " Last change: 2002 Feb 26 " Listen very carefully, I will say this only once if exists("did_load_filetypes") *************** *** 778,784 **** if exists("g:filetype_inc") exe "setf " . g:filetype_inc else ! lines = getline(1).getline(2).getline(3) if lines =~? "perlscript" setf aspperl elseif lines =~ "<%" --- 778,784 ---- if exists("g:filetype_inc") exe "setf " . g:filetype_inc else ! let lines = getline(1).getline(2).getline(3) if lines =~? "perlscript" setf aspperl elseif lines =~ "<%" *** ../vim61a.006/src/version.c Tue Feb 26 10:12:47 2002 --- src/version.c Tue Feb 26 17:03:55 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 7, /**/ -- The 50-50-90 rule: Anytime you have a 50-50 chance of getting something right, there's a 90% probability you'll get it wrong. /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///