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.
keyword/match | symbol |
---|---|
fn letfn #( | λ |
defn defn- | ⨍ |
partial | ℘ |
def | ≡ |
let | ┝ |
#{ | ∈ |
and | ∧ |
or | ∨ |
not | ¬ |
comp | ∘ |
doseq | ∀ |
recur | ┅ |
-> | › |
->> | » |
when | ◊ |
if | ◇ |
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.
BSD, short and sweet.
Original version by Filip Wolanski
Additions from forks: Honza Pokorny Justin Holguin Jeb Beich