I spent some time yesterday getting Leiningen and VimClojure to work together. Here are the notes in case someone else has the same problem:
> mkdir code/clojure
> cd code/clojure
LEININGEN
I downloaded the install script from http://github.com/technomancy/leiningen and put it
in ~/code/clojure/lein.
> chmod a+x lein
> ./lein self-install
> ./lein new helloworld
> cd helloworld
NAILGUN server
Next step was to add the nailgun server needed by vimclojure. To do this I added these lines
to project.clj (which was generated by "lein new helloworld" before)
[org.clojars.ato/nailgun "0.7.1"]
[org.clojars.gilbertl/vimclojure "2.1.2"]
Now update the dependencies to generate a lib directory with all jars we need:
> ../lein deps
VIMCLOJURE
let vimclojure#NailgunClient = "/home/johan/code/clojure/ng"
I then put these alias definitions in .bashrc:
alias lein='/home/johan/code/clojure/lein'
alias ng='java -server -cp src:classes:lib/* com.martiansoftware.nailgun.NGServer 127.0.0.1'
TESTING AND RUNNING
> cd ~/code/clojure
> ng &
> vim src/helloworld.core.clj
You should now be able to type