Skip to content

Commit 80ca7f4

Browse files
committed
Tweak README for GFMD
The README and doc/clojure.txt should be generated from a template. Or something less crappy than that.
1 parent 3bd91be commit 80ca7f4

1 file changed

Lines changed: 35 additions & 30 deletions

File tree

README.markdown

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,10 @@ default values below:
116116
Maximum scan distance of searchpairpos(). Larger values trade performance
117117
for correctness when dealing with very long forms. A value of 0 means search
118118
without limits.
119+
119120
```vim
120-
" Default
121-
let g:clojure_maxlines = 100
121+
" Default
122+
let g:clojure_maxlines = 100
122123
```
123124

124125
### `g:clojure_fuzzy_indent`, `g:clojure_fuzzy_indent_patterns`, and `g:clojure_fuzzy_indent_blacklist`
@@ -128,25 +129,27 @@ forms whose following lines must be indented as if the word is on the
128129
first line alone.
129130

130131
For example:
131-
```vim
132-
(defn good []
133-
"Correct indentation")
134132

135-
(defn bad []
136-
"Incorrect indentation")
133+
```clojure
134+
(defn good []
135+
"Correct indentation")
136+
137+
(defn bad []
138+
"Incorrect indentation")
137139
```
138140

139141
If you would like to match words that match a pattern, you can use the
140142
fuzzy indent feature. The defaults are:
143+
141144
```vim
142-
" Default
143-
let g:clojure_fuzzy_indent = 1
144-
let g:clojure_fuzzy_indent_patterns = ['^with', '^def', '^let']
145-
let g:clojure_fuzzy_indent_blacklist = ['^with-meta$', '-fn$']
146-
147-
" Legacy comma-delimited string version; the list format above is
148-
" recommended. Note that patterns are implicitly anchored with ^ and $.
149-
let g:clojure_fuzzy_indent_patterns = 'with.*,def.*,let.*'
145+
" Default
146+
let g:clojure_fuzzy_indent = 1
147+
let g:clojure_fuzzy_indent_patterns = ['^with', '^def', '^let']
148+
let g:clojure_fuzzy_indent_blacklist = ['^with-meta$', '-fn$']
149+
150+
" Legacy comma-delimited string version; the list format above is
151+
" recommended. Note that patterns are implicitly anchored with ^ and $.
152+
let g:clojure_fuzzy_indent_patterns = 'with.*,def.*,let.*'
150153
```
151154

152155
`g:clojure_fuzzy_indent_patterns` and `g:clojure_fuzzy_indent_blacklist` are
@@ -167,9 +170,10 @@ Some forms in Clojure are indented so that every subform is indented only two
167170
spaces, regardless of 'lispwords'. If you have a custom construct that should
168171
be indented in this idiosyncratic fashion, you can add your symbols to the
169172
default list below.
173+
170174
```vim
171-
" Default
172-
let g:clojure_special_indent_words = 'deftype,defrecord,reify,proxy,extend-type,extend-protocol,letfn'
175+
" Default
176+
let g:clojure_special_indent_words = 'deftype,defrecord,reify,proxy,extend-type,extend-protocol,letfn'
173177
```
174178

175179
### `g:clojure_align_multiline_strings`
@@ -178,23 +182,24 @@ When indenting multiline strings, align subsequent lines to the column
178182
after the opening quote, instead of the same column.
179183

180184
For example:
185+
181186
```clojure
182-
(def default
183-
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
184-
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
185-
enim ad minim veniam, quis nostrud exercitation ullamco laboris
186-
nisi ut aliquip ex ea commodo consequat.")
187-
188-
(def aligned
189-
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
190-
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
191-
enim ad minim veniam, quis nostrud exercitation ullamco laboris
192-
nisi ut aliquip ex ea commodo consequat.")
187+
(def default
188+
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
189+
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
190+
enim ad minim veniam, quis nostrud exercitation ullamco laboris
191+
nisi ut aliquip ex ea commodo consequat.")
192+
193+
(def aligned
194+
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
195+
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
196+
enim ad minim veniam, quis nostrud exercitation ullamco laboris
197+
nisi ut aliquip ex ea commodo consequat.")
193198
```
194199

195200
```vim
196-
" Default
197-
let g:clojure_align_multiline_strings = 0
201+
" Default
202+
let g:clojure_align_multiline_strings = 0
198203
```
199204

200205
License and Acknowledgements

0 commit comments

Comments
 (0)