annotate runtime/indent/xf86conf.vim @ 8732:29765df3a866 v7.4.1655

commit https://github.com/vim/vim/commit/1e7885abe8daa793fd9328d0fd6c456214cb467e Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 25 19:03:03 2016 +0100 patch 7.4.1655 Problem: remote_expr() hangs. (Ramel) Solution: Check for messages in the waiting loop.
author Christian Brabandt <cb@256bit.org>
date Fri, 25 Mar 2016 19:15:05 +0100
parents edc1c9d6dab9
children 1218c5353e2b
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 indent file
1224
edc1c9d6dab9 updated for version 7.1b
vimboss
parents: 856
diff changeset
2 " Language: XFree86 Configuration File
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 375
diff changeset
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
1224
edc1c9d6dab9 updated for version 7.1b
vimboss
parents: 856
diff changeset
4 " Latest Revision: 2006-12-20
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("b:did_indent")
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 b:did_indent = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 setlocal indentexpr=GetXF86ConfIndent()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 setlocal indentkeys=!^F,o,O,=End
1224
edc1c9d6dab9 updated for version 7.1b
vimboss
parents: 856
diff changeset
13 setlocal nosmartindent
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 if exists("*GetXF86ConfIndent")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 function GetXF86ConfIndent()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 let lnum = prevnonblank(v:lnum - 1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 if lnum == 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 return 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 let ind = indent(lnum)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
28 if getline(lnum) =~? '^\s*\(Sub\)\=Section\>'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 let ind = ind + &sw
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
30 endif
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
31
1224
edc1c9d6dab9 updated for version 7.1b
vimboss
parents: 856
diff changeset
32 if getline(v:lnum) =~? '^\s*End\(Sub\)\=Section\>'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 let ind = ind - &sw
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 return ind
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 endfunction