annotate runtime/indent.vim @ 1498:4845822f6a6c v7.1.213

updated for version 7.1-213
author vimboss
date Wed, 09 Jan 2008 19:30:36 +0000
parents fca8a9b65afa
children 19ef2bbf569c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim support file to switch on loading indent files for file types
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
233
fca8a9b65afa updated for version 7.0065
vimboss
parents: 7
diff changeset
4 " Last Change: 2005 Mar 28
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 if exists("did_indent_on")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 let did_indent_on = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 augroup filetypeindent
233
fca8a9b65afa updated for version 7.0065
vimboss
parents: 7
diff changeset
12 au FileType * call s:LoadIndent()
fca8a9b65afa updated for version 7.0065
vimboss
parents: 7
diff changeset
13 func! s:LoadIndent()
fca8a9b65afa updated for version 7.0065
vimboss
parents: 7
diff changeset
14 if exists("b:undo_indent")
fca8a9b65afa updated for version 7.0065
vimboss
parents: 7
diff changeset
15 exe b:undo_indent
fca8a9b65afa updated for version 7.0065
vimboss
parents: 7
diff changeset
16 unlet! b:undo_indent b:did_indent
fca8a9b65afa updated for version 7.0065
vimboss
parents: 7
diff changeset
17 endif
fca8a9b65afa updated for version 7.0065
vimboss
parents: 7
diff changeset
18 if expand("<amatch>") != ""
fca8a9b65afa updated for version 7.0065
vimboss
parents: 7
diff changeset
19 if exists("b:did_indent")
fca8a9b65afa updated for version 7.0065
vimboss
parents: 7
diff changeset
20 unlet b:did_indent
fca8a9b65afa updated for version 7.0065
vimboss
parents: 7
diff changeset
21 endif
fca8a9b65afa updated for version 7.0065
vimboss
parents: 7
diff changeset
22 runtime! indent/<amatch>.vim
fca8a9b65afa updated for version 7.0065
vimboss
parents: 7
diff changeset
23 endif
fca8a9b65afa updated for version 7.0065
vimboss
parents: 7
diff changeset
24 endfunc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 augroup END