4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Some TCL scripts are not recognized. (Steven Atkinson)
12 Solution: Check for "exec wish" in the file.
13 Files: runtime/scripts.vim
16 *** ../vim-7.0.048/runtime/scripts.vim Tue Mar 28 23:07:11 2006
17 --- runtime/scripts.vim Sat Jul 8 22:20:51 2006
20 " Vim support file to detect file types in scripts
22 " Maintainer: Bram Moolenaar <Bram@vim.org>
23 ! " Last change: 2006 Mar 28
25 " This file is called by an autocommand for every file that has just been
26 " loaded into a buffer. It checks if the type of file can be recognized by
28 " Vim support file to detect file types in scripts
30 " Maintainer: Bram Moolenaar <Bram@vim.org>
31 ! " Last change: 2006 Jul 08
33 " This file is called by an autocommand for every file that has just been
34 " loaded into a buffer. It checks if the type of file can be recognized by
38 let s:name = substitute(s:line1, '^#!\s*\([^/\\ ]*\>\).*', '\1', '')
40 let s:name = substitute(s:line1, '^#!\s*\S*[/\\]\(\i\+\).*', '\1', '')
43 + " tcl scripts may have #!/bin/sh in the first line and "exec wish" in the
44 + " third line. Suggested by Steven Atkinson.
45 + if getline(3) =~ '^exec wish'
49 " Bourne-like shell scripts: bash bash2 ksh ksh93 sh
50 *** ../vim-7.0.048/src/version.c Tue Aug 8 19:55:06 2006
51 --- src/version.c Tue Aug 8 20:53:58 2006
55 { /* Add new patch number below this line */
62 ...for the piles of laundry and ironing because it means I
63 have plenty of clothes to wear.
65 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
66 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
67 \\\ download, build and distribute -- http://www.A-A-P.org ///
68 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///