Mercurial > vim
comparison runtime/indent/xf86conf.vim @ 1224:edc1c9d6dab9
updated for version 7.1b
author | vimboss |
---|---|
date | Thu, 10 May 2007 19:06:20 +0000 |
parents | 8cd729851562 |
children | 1218c5353e2b |
comparison
equal
deleted
inserted
replaced
1223:dfd2f4a60a64 | 1224:edc1c9d6dab9 |
---|---|
1 " Vim indent file | 1 " Vim indent file |
2 " Language: XFree86 Configuration File | 2 " Language: XFree86 Configuration File |
3 " Maintainer: Nikolai Weibull <now@bitwi.se> | 3 " Maintainer: Nikolai Weibull <now@bitwi.se> |
4 " Latest Revision: 2006-04-19 | 4 " Latest Revision: 2006-12-20 |
5 | 5 |
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 indentexpr=GetXF86ConfIndent() | 11 setlocal indentexpr=GetXF86ConfIndent() |
12 setlocal indentkeys=!^F,o,O,=End | 12 setlocal indentkeys=!^F,o,O,=End |
13 setlocal nosmartindent | |
13 | 14 |
14 if exists("*GetXF86ConfIndent") | 15 if exists("*GetXF86ConfIndent") |
15 finish | 16 finish |
16 endif | 17 endif |
17 | 18 |
26 | 27 |
27 if getline(lnum) =~? '^\s*\(Sub\)\=Section\>' | 28 if getline(lnum) =~? '^\s*\(Sub\)\=Section\>' |
28 let ind = ind + &sw | 29 let ind = ind + &sw |
29 endif | 30 endif |
30 | 31 |
31 if getline(v:lnum) =~? '^\s*End\>' | 32 if getline(v:lnum) =~? '^\s*End\(Sub\)\=Section\>' |
32 let ind = ind - &sw | 33 let ind = ind - &sw |
33 endif | 34 endif |
34 | 35 |
35 return ind | 36 return ind |
36 endfunction | 37 endfunction |