Skip to content

Commit 1742549

Browse files
committed
Improve indentation style examples in Vim help doc
1 parent c4a25c5 commit 1742549

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

doc/clojure.txt

+19-19
Original file line numberDiff line numberDiff line change
@@ -22,32 +22,32 @@ to use. Choose from several common presets:
2222
* `standard` (default):
2323
Conventional Clojure indentation. (Clojure Style Guide [1]) >
2424
25-
(my-fn 1
26-
2)
27-
28-
(my-fn
29-
1
30-
2)
25+
|(filter even?
26+
| [1 2 3])
27+
|
28+
|(filter
29+
| even?
30+
| [1 2 3])
3131
<
3232
* `traditional`:
3333
Indent like traditional Lisps. >
3434
35-
(my-fn 1
36-
2)
37-
38-
(my-fn
39-
1
40-
2)
35+
|(filter even?
36+
| [1 2 3])
37+
|
38+
|(filter
39+
| even?
40+
| [1 2 3])
4141
<
4242
* `uniform`:
4343
Indent uniformly to 2 spaces with no alignment (aka Tonsky indentation [2]).
4444
>
45-
(my-fn 1
46-
2)
47-
48-
(my-fn
49-
1
50-
2)
45+
|(filter even?
46+
| [1 2 3])
47+
|
48+
|(filter
49+
| even?
50+
| [1 2 3])
5151
<
5252
[1]: https://guide.clojure.style/
5353
[2]: https://tonsky.me/blog/clojurefmt/
@@ -86,7 +86,7 @@ Pick from the following multi-line string indent styles:
8686
* `pretty`:
8787
Align to the back of the `"` or `#"` delimiter.
8888
>
89-
|(def aligned
89+
|(def pretty
9090
| "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
9191
| eiusmod tempor incididunt ut labore et dolore magna aliqua.")
9292
<

0 commit comments

Comments
 (0)