1
+ # Clojure.vim
1
2
3
+ [ Vim] [ ] runtime files for [ Clojure] [ ] . This is a fork of
4
+ [ vim-clojure-static] [ ] .
2
5
3
- o8o
4
- '"'
5
- oooo ooooooo ooo. .oo. .oo.
6
- `88. .8' `888 `888P"Y88bP"Y88b
7
- `88..8' 888 888 888 888
8
- `888' 888 888 888 888
9
- `8' o888oo888o o888o o888o
10
6
7
+ ## Installation
11
8
12
- oooo o8o
13
- `888 '"'
14
- .ooooo. 888 .ooooo. oooooooo oooo oooo d8b .ooooo.
15
- d88' `"Y8 888 d88' `88b`888`888 `888 `888""8Pd88' `88b
16
- 888 888 888 888 888 888 888 888 888ooo888
17
- 888 .o8 888 888 888 888 888 888 888 888 .o
18
- `Y8bod8P'o888o`Y8bod8P' 888 `V88V"V8P'd888b `Y8bod8P'
19
- 888
20
- .o. 88P
21
- . `Y888P . o8o
22
- .o8 .o8 '"'
23
- .oooo.o.o888oo .oooo. .o888oooooo .ooooo.
24
- d88( "8 888 `P )88b 888 `888 d88' `"Y8
25
- `"Y88b. 888 .oP"888 888 888 888
26
- o. )88b 888 .d8( 888 888 . 888 888 .o8
27
- 8""888P' "888"`Y888""8o "888"o888o`Y8bod8P'
28
-
29
-
30
-
31
- Meikel Brandmeyer's excellent Clojure runtime files, extracted from the
32
- [ VimClojure] ( http://www.vim.org/scripts/script.php?script_id=2501 ) project for
33
- use with alternate Clojure REPL plugins.
34
-
35
- These files ship with Vim versions 7.3.803 and later, and are periodically
9
+ These files ship with Vim version 7.3.803 and later and are periodically
36
10
merged into the official Vim repository.
37
11
38
- Installation
39
- ============
40
-
41
12
If you are running an old version of Vim or if you would like to keep up with
42
- development, you can install this repository like a standard Vim plugin.
43
-
44
- If you are unfamiliar with this process, refer to
45
- the [ Pathogen] ( https://github.com/tpope/vim-pathogen ) project.
13
+ the latest changes, you can install this repository as you would any other Vim
14
+ plugin.
46
15
47
- Please make sure that the following options are set in your vimrc to enable
48
- all features:
16
+ Make sure that the following options are set in your vimrc so that all
17
+ features are enabled :
49
18
50
19
``` vim
51
20
syntax on
52
21
filetype plugin indent on
53
22
```
54
23
55
- Features
56
- ========
24
+ ## Features
57
25
58
26
* [ Augmentable] ( #syntax-options ) syntax highlighting for Clojure and
59
27
ClojureScript buffers.
@@ -70,8 +38,10 @@ Features
70
38
If you install this project as a plugin, ` *.edn ` files are recognized as a
71
39
Clojure filetype, overriding the built-in declaration as ` edif ` .
72
40
73
- Third Party Extensions
74
- ======================
41
+ <!--
42
+ TODO: update and move to wiki pages.
43
+
44
+ ## Third Party Extensions
75
45
76
46
* Rainbow Parentheses
77
47
@@ -87,15 +57,16 @@ Third Party Extensions
87
57
This is a reimplementation of the DynamicHighlighting feature from
88
58
VimClojure.
89
59
90
- Clojure REPL Plugins
91
- ====================
60
+ ## Clojure REPL Plugins
92
61
93
62
If you would like to get more serious about programming in Clojure, consider
94
63
using an interactive
95
64
[Clojure REPL plugin](https://github.com/guns/vim-clojure-static/wiki/Clojure-REPL-Plugins).
65
+ -->
66
+
67
+ ## Configuration
96
68
97
- Syntax Options
98
- ==============
69
+ ### Syntax Options
99
70
100
71
Syntax highlighting for public vars from ` clojure.core ` is provided by
101
72
default, but any symbol can be matched and highlighted by adding it to the
@@ -123,8 +94,7 @@ namespaces that have set `(:refer-clojure :only [])`.
123
94
[ ` vim-clojure-highlight ` ] ( https://github.com/guns/vim-clojure-highlight ) uses
124
95
these variables to highlight extra vars when connected to a REPL.
125
96
126
- Indent Options
127
- ==============
97
+ ### Indent Options
128
98
129
99
Clojure indentation differs somewhat from traditional Lisps, due in part to
130
100
the use of square and curly brackets, and otherwise by community convention.
@@ -134,7 +104,7 @@ offers a few configurable options, listed below.
134
104
If the current vim does not include searchpairpos(), the indent script falls
135
105
back to normal ` 'lisp' ` indenting, and the following options are ignored.
136
106
137
- ### ` g:clojure_maxlines `
107
+ #### ` g:clojure_maxlines `
138
108
139
109
Set maximum scan distance of searchpairpos(). Larger values trade performance
140
110
for correctness when dealing with very long forms. A value of 0 will scan
@@ -145,7 +115,7 @@ without limits.
145
115
let g:clojure_maxlines = 100
146
116
```
147
117
148
- ### ` g:clojure_fuzzy_indent ` , ` g:clojure_fuzzy_indent_patterns ` , ` g:clojure_fuzzy_indent_blacklist `
118
+ #### ` g:clojure_fuzzy_indent ` , ` g:clojure_fuzzy_indent_patterns ` , ` g:clojure_fuzzy_indent_blacklist `
149
119
150
120
The ` 'lispwords' ` option is a list of comma-separated words that mark special
151
121
forms whose subforms must be indented with two spaces.
@@ -186,7 +156,7 @@ Each candidate word is tested for special treatment in this order:
186
156
3 . Return true if word matches a pattern in ` g:clojure_fuzzy_indent_patterns `
187
157
4 . Return false and indent normally otherwise
188
158
189
- ### ` g:clojure_special_indent_words `
159
+ #### ` g:clojure_special_indent_words `
190
160
191
161
Some forms in Clojure are indented so that every subform is indented only
192
162
two spaces, regardless of ` 'lispwords' ` . If you have a custom construct that
@@ -198,7 +168,7 @@ the default list below.
198
168
let g:clojure_special_indent_words = 'deftype,defrecord,reify,proxy,extend-type,extend-protocol,letfn'
199
169
```
200
170
201
- ### ` g:clojure_align_multiline_strings `
171
+ #### ` g:clojure_align_multiline_strings `
202
172
203
173
Align subsequent lines in multiline strings to the column after the opening
204
174
quote, instead of the same column.
@@ -226,7 +196,7 @@ This option is off by default.
226
196
let g:clojure_align_multiline_strings = 0
227
197
```
228
198
229
- ### ` g:clojure_align_subforms `
199
+ #### ` g:clojure_align_subforms `
230
200
231
201
By default, parenthesized compound forms that look like function calls and
232
202
whose head subform is on its own line have subsequent subforms indented by
@@ -254,10 +224,9 @@ This option is off by default.
254
224
let g:clojure_align_subforms = 0
255
225
```
256
226
257
- Development
258
- ===========
227
+ ## Contribute!
259
228
260
- Pull requests and patches are strongly encouraged !
229
+ Pull requests are welcome !
261
230
262
231
A large portion of the syntax file is generated from Clojure code in
263
232
` clj/src/ ` . Generation of vim code in this fashion is preferred over hand
@@ -266,31 +235,38 @@ crafting of the same.
266
235
There is an incomplete syntax test suite in ` clj/test/ ` . Any additions and
267
236
improvements to these tests are highly appreciated.
268
237
269
- License and Acknowledgements
270
- ============================
271
238
272
- Many thanks to [ Meikel Brandmeyer] ( http://kotka.de/ ) for his excellent work on
273
- making Vim a first class Clojure editor.
239
+ ## Acknowledgements
274
240
275
- Thanks to [ Tim Pope ] ( https://github.com/tpope/ ) for advice in # vim.
241
+ Clojure.vim is a continuation of [ vim-clojure-static ] [ ] .
276
242
277
- ` syntax/clojure.vim `
243
+ Vim-clojure-static was created by [ Sung Pae] ( https://github.com/guns ) using
244
+ [ Meikel Brandmeyer] ( http://kotka.de/ ) 's Clojure runtime files from the
245
+ [ VimClojure] [ ] project for use with alternate Clojure REPL plugins.
278
246
279
- * Copyright 2007-2008 (c) Toralf Wittner < [email protected] >
280
- * Copyright 2008-2012 (c) Meikel Brandmeyer < [email protected] >
247
+ Thanks to [ Tim Pope ] ( https://github.com/tpope/ ) for advice in
248
+ [ #vim ] ( https://www.vi-improved.org/ ) .
281
249
282
- ` ftdetect/clojure.vim ` ,<br >
283
- ` ftplugin/clojure.vim ` ,<br >
284
- ` indent/clojure.vim `
285
250
286
- * Copyright 2008-2012 (c) Meikel Brandmeyer < [email protected] >
251
+ ## License
287
252
288
- Modified and relicensed under the Vim License for distribution with Vim:
253
+ Clojure.vim is licensed under the [ Vim
254
+ License] ( http://vimdoc.sourceforge.net/htmldoc/uganda.html#license ) for
255
+ distribution with Vim.
289
256
290
- * Copyright 2013-2014 (c) Sung Pae
< [email protected] >
257
+ - Copyright © 2013–2017, Sung Pae.
< [email protected] >
258
+ - Copyright © 2008–2012, Meikel Brandmeyer.
< [email protected] >
259
+ - Copyright © 2007–2008, Toralf Wittner. <
[email protected] >
291
260
292
- See LICENSE.txt for more information.
261
+ See [ LICENSE] ( https://github.com/clojure-vim/clojure.vim/blob/master/LICENSE )
262
+ for more details.
293
263
294
- <!--
295
- vim:ft=markdown:et:tw=78:
296
- -->
264
+
265
+ <!-- Links -->
266
+
267
+ [ vim ] : https://www.vim.org
268
+ [ vim-clojure-static ] : https://github.com/guns/vim-clojure-static
269
+ [ vimclojure ] : https://www.vim.org/scripts/script.php?script_id=2501
270
+ [ clojure ] : https://clojure.org
271
+
272
+ <!-- vim: set tw=79 : -->
0 commit comments