1+ # Clojure.vim
12
3+ [ Vim] [ ] runtime files for [ Clojure] [ ] . This is a fork of
4+ [ vim-clojure-static] [ ] .
25
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
106
7+ ## Installation
118
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
3610merged into the official Vim repository.
3711
38- Installation
39- ============
40-
4112If 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.
4615
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 :
4918
5019``` vim
5120syntax on
5221filetype plugin indent on
5322```
5423
55- Features
56- ========
24+ ## Features
5725
5826* [ Augmentable] ( #syntax-options ) syntax highlighting for Clojure and
5927 ClojureScript buffers.
@@ -70,8 +38,10 @@ Features
7038If you install this project as a plugin, ` *.edn ` files are recognized as a
7139Clojure filetype, overriding the built-in declaration as ` edif ` .
7240
73- Third Party Extensions
74- ======================
41+ <!--
42+ TODO: update and move to wiki pages.
43+
44+ ## Third Party Extensions
7545
7646* Rainbow Parentheses
7747
@@ -87,15 +57,16 @@ Third Party Extensions
8757 This is a reimplementation of the DynamicHighlighting feature from
8858 VimClojure.
8959
90- Clojure REPL Plugins
91- ====================
60+ ## Clojure REPL Plugins
9261
9362If you would like to get more serious about programming in Clojure, consider
9463using an interactive
9564[Clojure REPL plugin](https://github.com/guns/vim-clojure-static/wiki/Clojure-REPL-Plugins).
65+ -->
66+
67+ ## Configuration
9668
97- Syntax Options
98- ==============
69+ ### Syntax Options
9970
10071Syntax highlighting for public vars from ` clojure.core ` is provided by
10172default, but any symbol can be matched and highlighted by adding it to the
@@ -123,8 +94,7 @@ namespaces that have set `(:refer-clojure :only [])`.
12394[ ` vim-clojure-highlight ` ] ( https://github.com/guns/vim-clojure-highlight ) uses
12495these variables to highlight extra vars when connected to a REPL.
12596
126- Indent Options
127- ==============
97+ ### Indent Options
12898
12999Clojure indentation differs somewhat from traditional Lisps, due in part to
130100the use of square and curly brackets, and otherwise by community convention.
@@ -134,7 +104,7 @@ offers a few configurable options, listed below.
134104If the current vim does not include searchpairpos(), the indent script falls
135105back to normal ` 'lisp' ` indenting, and the following options are ignored.
136106
137- ### ` g:clojure_maxlines `
107+ #### ` g:clojure_maxlines `
138108
139109Set maximum scan distance of searchpairpos(). Larger values trade performance
140110for correctness when dealing with very long forms. A value of 0 will scan
@@ -145,7 +115,7 @@ without limits.
145115let g:clojure_maxlines = 100
146116```
147117
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 `
149119
150120The ` 'lispwords' ` option is a list of comma-separated words that mark special
151121forms whose subforms must be indented with two spaces.
@@ -186,7 +156,7 @@ Each candidate word is tested for special treatment in this order:
1861563 . Return true if word matches a pattern in ` g:clojure_fuzzy_indent_patterns `
1871574 . Return false and indent normally otherwise
188158
189- ### ` g:clojure_special_indent_words `
159+ #### ` g:clojure_special_indent_words `
190160
191161Some forms in Clojure are indented so that every subform is indented only
192162two spaces, regardless of ` 'lispwords' ` . If you have a custom construct that
@@ -198,7 +168,7 @@ the default list below.
198168let g:clojure_special_indent_words = 'deftype,defrecord,reify,proxy,extend-type,extend-protocol,letfn'
199169```
200170
201- ### ` g:clojure_align_multiline_strings `
171+ #### ` g:clojure_align_multiline_strings `
202172
203173Align subsequent lines in multiline strings to the column after the opening
204174quote, instead of the same column.
@@ -226,7 +196,7 @@ This option is off by default.
226196let g:clojure_align_multiline_strings = 0
227197```
228198
229- ### ` g:clojure_align_subforms `
199+ #### ` g:clojure_align_subforms `
230200
231201By default, parenthesized compound forms that look like function calls and
232202whose head subform is on its own line have subsequent subforms indented by
@@ -254,10 +224,9 @@ This option is off by default.
254224let g:clojure_align_subforms = 0
255225```
256226
257- Development
258- ===========
227+ ## Contribute!
259228
260- Pull requests and patches are strongly encouraged !
229+ Pull requests are welcome !
261230
262231A large portion of the syntax file is generated from Clojure code in
263232` clj/src/ ` . Generation of vim code in this fashion is preferred over hand
@@ -266,31 +235,38 @@ crafting of the same.
266235There is an incomplete syntax test suite in ` clj/test/ ` . Any additions and
267236improvements to these tests are highly appreciated.
268237
269- License and Acknowledgements
270- ============================
271238
272- Many thanks to [ Meikel Brandmeyer] ( http://kotka.de/ ) for his excellent work on
273- making Vim a first class Clojure editor.
239+ ## Acknowledgements
274240
275- Thanks to [ Tim Pope ] ( https://github.com/tpope/ ) for advice in # vim.
241+ Clojure.vim is a continuation of [ vim-clojure-static ] [ ] .
276242
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.
278246
279- * Copyright 2007-2008 (c) Toralf Wittner < toralf.wittner@gmail.com >
280- * Copyright 2008-2012 (c) Meikel Brandmeyer < mb@kotka.de >
247+ Thanks to [ Tim Pope ] ( https://github.com/tpope/ ) for advice in
248+ [ #vim ] ( https://www.vi-improved.org/ ) .
281249
282- ` ftdetect/clojure.vim ` ,<br >
283- ` ftplugin/clojure.vim ` ,<br >
284- ` indent/clojure.vim `
285250
286- * Copyright 2008-2012 (c) Meikel Brandmeyer < mb@kotka.de >
251+ ## License
287252
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.
289256
290- * Copyright 2013-2014 (c) Sung Pae < self@sungpae.com >
257+ - Copyright © 2013–2017, Sung Pae. < self@sungpae.com >
258+ - Copyright © 2008–2012, Meikel Brandmeyer. < mb@kotka.de >
259+ - Copyright © 2007–2008, Toralf Wittner. <toralf.wittner@gmail.com >
291260
292- See LICENSE.txt for more information.
261+ See [ LICENSE] ( https://github.com/clojure-vim/clojure.vim/blob/master/LICENSE )
262+ for more details.
293263
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