Mercurial > hg > RemoteEditor > vim7
comparison runtime/indent/xinetd.vim @ 48:67300faee616 v7-3-618
v7-3-618
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 01 Aug 2012 18:08:28 +0900 |
parents | 76efa0be13f1 |
children |
comparison
equal
deleted
inserted
replaced
47:6c0584ec21b1 | 48:67300faee616 |
---|---|
13 setlocal nosmartindent | 13 setlocal nosmartindent |
14 | 14 |
15 if exists("*GetXinetdIndent") | 15 if exists("*GetXinetdIndent") |
16 finish | 16 finish |
17 endif | 17 endif |
18 let s:keepcpo= &cpo | |
19 set cpo&vim | |
18 | 20 |
19 function s:count_braces(lnum, count_open) | 21 function s:count_braces(lnum, count_open) |
20 let n_open = 0 | 22 let n_open = 0 |
21 let n_close = 0 | 23 let n_close = 0 |
22 let line = getline(a:lnum) | 24 let line = getline(a:lnum) |
46 endif | 48 endif |
47 | 49 |
48 return indent(pnum) + s:count_braces(pnum, 1) * &sw | 50 return indent(pnum) + s:count_braces(pnum, 1) * &sw |
49 \ - s:count_braces(v:lnum, 0) * &sw | 51 \ - s:count_braces(v:lnum, 0) * &sw |
50 endfunction | 52 endfunction |
53 | |
54 let &cpo = s:keepcpo | |
55 unlet s:keepcpo |