annotate runtime/indent.vim @ 9:6a13985590e6

*** empty log message ***
author axmo
date Fri, 29 Aug 2008 15:41:29 +0900
parents 76efa0be13f1
children e170173ecb68
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
1 " Vim support file to switch on loading indent files for file types
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
2 "
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
4 " Last Change: 2005 Mar 28
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
5
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
6 if exists("did_indent_on")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
7 finish
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
8 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
9 let did_indent_on = 1
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
10
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
11 augroup filetypeindent
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
12 au FileType * call s:LoadIndent()
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
13 func! s:LoadIndent()
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
14 if exists("b:undo_indent")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
15 exe b:undo_indent
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
16 unlet! b:undo_indent b:did_indent
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
17 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
18 if expand("<amatch>") != ""
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
19 if exists("b:did_indent")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
20 unlet b:did_indent
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
21 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
22 runtime! indent/<amatch>.vim
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
23 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
24 endfunc
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
25 augroup END