Mercurial > vim
comparison runtime/indent/vb.vim @ 233:fca8a9b65afa
updated for version 7.0065
author | vimboss |
---|---|
date | Mon, 28 Mar 2005 20:58:01 +0000 |
parents | 4102fb4ea781 |
children | c0e675a3e363 |
comparison
equal
deleted
inserted
replaced
232:41e7594cac8b | 233:fca8a9b65afa |
---|---|
6 if exists("b:did_indent") | 6 if exists("b:did_indent") |
7 finish | 7 finish |
8 endif | 8 endif |
9 let b:did_indent = 1 | 9 let b:did_indent = 1 |
10 | 10 |
11 setlocal autoindent | |
11 setlocal indentexpr=VbGetIndent(v:lnum) | 12 setlocal indentexpr=VbGetIndent(v:lnum) |
12 setlocal indentkeys& | 13 setlocal indentkeys& |
13 setlocal indentkeys+==~else,=~elseif,=~end,=~wend,=~case,=~next,=~select,=~loop,<:> | 14 setlocal indentkeys+==~else,=~elseif,=~end,=~wend,=~case,=~next,=~select,=~loop,<:> |
15 | |
16 let b:undo_indent = "set ai< indentexpr< indentkeys<" | |
14 | 17 |
15 " Only define the function once. | 18 " Only define the function once. |
16 if exists("*VbGetIndent") | 19 if exists("*VbGetIndent") |
17 finish | 20 finish |
18 endif | 21 endif |