Skip to content

Commit 7af24a3

Browse files
committed
Make 'define' more permissive
Thanks to tpope for the suggestion.
1 parent 12a8541 commit 7af24a3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ftplugin/clojure.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ set cpo&vim
1818

1919
let b:undo_ftplugin = "setlocal fo< com< cms< cpt< isk< def<"
2020

21-
setlocal define=^\\s*(def\\(-\\|n\\|n-\\|macro\\|struct\\|multi\\)?
21+
" There will be false positives, but this is arguably better than missing the
22+
" whole set of user-defined def* definitions.
23+
setlocal define=\\v[(/]def(ault)@!\\S*
2224

2325
" Set 'formatoptions' to break comment lines but not other lines,
2426
" and insert the comment leader when hitting <CR> or using "o".

0 commit comments

Comments
 (0)