4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: The filetype can consist of two dot separated names. This works
12 for syntax and ftplugin, but not for indent. (Brett Stahlman)
13 Solution: Use split() and loop over each dot separated name.
14 Files: runtime/indent.vim
17 *** ../vim-7.1.262/runtime/indent.vim Mon Mar 28 22:56:55 2005
18 --- runtime/indent.vim Fri Feb 22 21:05:39 2008
21 " Vim support file to switch on loading indent files for file types
23 " Maintainer: Bram Moolenaar <Bram@vim.org>
24 ! " Last Change: 2005 Mar 28
26 if exists("did_indent_on")
29 " Vim support file to switch on loading indent files for file types
31 " Maintainer: Bram Moolenaar <Bram@vim.org>
32 ! " Last Change: 2008 Feb 22
34 if exists("did_indent_on")
39 unlet! b:undo_indent b:did_indent
41 ! if expand("<amatch>") != ""
42 if exists("b:did_indent")
45 ! runtime! indent/<amatch>.vim
51 unlet! b:undo_indent b:did_indent
53 ! let s = expand("<amatch>")
55 if exists("b:did_indent")
59 ! " When there is a dot it is used to separate filetype names. Thus for
60 ! " "aaa.bbb" load "indent/aaa.vim" and then "indent/bbb.vim".
61 ! for name in split(s, '\.')
62 ! exe 'runtime! indent/' . name . '.vim'
67 *** ../vim-7.1.262/src/version.c Wed Feb 20 20:09:44 2008
68 --- src/version.c Mon Feb 25 20:44:04 2008
72 { /* Add new patch number below this line */
78 hundred-and-one symptoms of being an internet addict:
79 45. You buy a Captain Kirk chair with a built-in keyboard and mouse.
81 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
82 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
83 \\\ download, build and distribute -- http://www.A-A-P.org ///
84 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///