summaryrefslogtreecommitdiffstats
path: root/runtime/doc/indent.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-07-17 17:12:06 +0200
committerBram Moolenaar <Bram@vim.org>2010-07-17 17:12:06 +0200
commit02c707a87da1b0f78d10a689cc03941a2e8acbc6 (patch)
tree660b6ed13aade94f365ff8bf82c11f4cd1ee7254 /runtime/doc/indent.txt
parent76b96fc08b9bc5ea5651e46dc091f7198c6475ee (diff)
Add the 'L' item to 'cinoptions'. (Manuel Konig)
Diffstat (limited to 'runtime/doc/indent.txt')
-rw-r--r--runtime/doc/indent.txt20
1 files changed, 17 insertions, 3 deletions
diff --git a/runtime/doc/indent.txt b/runtime/doc/indent.txt
index 410fe38eaa..a1d4cb21b3 100644
--- a/runtime/doc/indent.txt
+++ b/runtime/doc/indent.txt
@@ -216,6 +216,19 @@ assume a 'shiftwidth' of 4.
} } }
} } }
<
+ LN Controls placement of jump labels. If N is negative, the label
+ will be placed at column 1. If N is non-negative, the indent of
+ the label will be the prevailing indent minus N. (default -1).
+
+ cino= cino=L2 cino=Ls >
+ func() func() func()
+ { { {
+ { { {
+ stmt; stmt; stmt;
+ LABEL: LABEL: LABEL:
+ } } }
+ } } }
+<
:N Place case labels N characters from the indent of the switch().
(default 'shiftwidth').
@@ -464,13 +477,14 @@ assume a 'shiftwidth' of 4.
The defaults, spelled out in full, are:
- cinoptions=>s,e0,n0,f0,{0,}0,^0,:s,=s,l0,b0,gs,hs,ps,ts,is,+s,c3,C0,
- /0,(2s,us,U0,w0,W0,m0,j0,)20,*70,#0
+ cinoptions=>s,e0,n0,f0,{0,}0,^0,L-1,:s,=s,l0,b0,gs,hs,ps,ts,is,+s,
+ c3,C0,/0,(2s,us,U0,w0,W0,m0,j0,J0,)20,*70,#0
Vim puts a line in column 1 if:
- It starts with '#' (preprocessor directives), if 'cinkeys' contains '#'.
- It starts with a label (a keyword followed by ':', other than "case" and
- "default").
+ "default") and 'cinoptions' does not contain an 'L' entry with a positive
+ value.
- Any combination of indentations causes the line to have less than 0
indentation.