/vim-cloceal

Unicode lambdas and such for clojure using Vim's conceal feature

Primary LanguageVim Script

Vim Cloceal

Based on fwolanski/vim-clojure-conceal and some forks of this projects.

Conceals clojure keywords in vim. To change the symbols and/or keywords, there are a few options:

  • Fork this project and simply change after/syntax/clojure.vim... and probably make a pull request
  • Put in an issue what you'd like to have changed/optional.

For example:

(defn square [x]
  (* x x))

becomes:

( square [x]
  (* x x))

It requires at least Vim 7.3 and a unicode font.

Conceals

keyword/match symbol
fn letfn #( λ
defn defn-
partial
def
let
#{
and
or
not ¬
comp
doseq
recur
->
->> »
when
if

Installation

Drop clojure.vim to ~/.vim/after/syntax (Linux/Mac OS X/BSD) or ~/vimfiles/after/syntax folder (Windows). Or install with pathogen or vundle in the usual way.

License

BSD, short and sweet.

Credit

Original version by Filip Wolanski

Additions from forks: Honza Pokorny Justin Holguin Jeb Beich