Skip to content

Commit 8b6577d

Browse files
committed
Document new omnifunc / completefunc
1 parent c551d63 commit 8b6577d

2 files changed

Lines changed: 17 additions & 9 deletions

File tree

README.markdown

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,13 @@ Differences from VimClojure
7070
[`rainbow_parentheses.vim`](https://github.com/kien/rainbow_parentheses.vim)
7171
is an excellent replacement.
7272

73-
* Insert mode completion is provided for special forms and public vars in
74-
`clojure.core`. If you are looking for more comprehensive completions,
75-
please consider using an interactive development plugin listed below.
73+
* Basic insert mode completion is provided for special forms and public vars
74+
in `clojure.core`. It is bound to both the `'omnifunc'` and `'completefunc'`
75+
options, which can be invoked with the insert mode mappings `<C-X><C-O>` and
76+
`<C-X><C-U>` respectively.
77+
78+
For more comprehensive completions, consider using an interactive
79+
development plugin listed below.
7680

7781
Interactive Clojure Development Plugins
7882
=======================================
@@ -105,8 +109,8 @@ By Eric Van Dewoestine.
105109
Try <https://github.com/guns/screen> for better window handling if you are
106110
running tmux 1.5 or higher.
107111

108-
Options
109-
=======
112+
Indent Options
113+
==============
110114

111115
Clojure indentation differs somewhat from traditional Lisps, due in part to
112116
the use of square and curly brackets, and otherwise by community convention.
@@ -216,12 +220,14 @@ making Vim a first class Clojure editor.
216220

217221
Thanks to [Tim Pope](https://github.com/tpope/) for advice in #vim.
218222

219-
syntax/clojure.vim:
223+
`syntax/clojure.vim`
220224

221225
* Copyright 2007-2008 (c) Toralf Wittner <toralf.wittner@gmail.com>
222226
* Copyright 2008-2012 (c) Meikel Brandmeyer <mb@kotka.de>
223227

224-
All other files:
228+
`ftdetect/clojure.vim`<br>
229+
`ftplugin/clojure.vim`<br>
230+
`indent/clojure.vim`
225231

226232
* Copyright 2008-2012 (c) Meikel Brandmeyer <mb@kotka.de>
227233

doc/clojure.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,14 @@ https://github.com/guns/vim-clojure-static
111111

112112
Distributed under the Vim license. See |license|.
113113

114-
syntax/clojure.vim:
114+
syntax/clojure.vim
115115

116116
Copyright 2007-2008 (c) Toralf Wittner <toralf.wittner@gmail.com>
117117
Copyright 2008-2012 (c) Meikel Brandmeyer <mb@kotka.de>
118118

119-
All other files:
119+
ftdetect/clojure.vim
120+
ftplugin/clojure.vim
121+
indent/clojure.vim
120122

121123
Copyright 2008-2012 (c) Meikel Brandmeyer <mb@kotka.de>
122124

0 commit comments

Comments
 (0)