Getting started with Vim and Leiningen


Hi all! I’m having troubles in setting up Vim for a Leiningen default Hello World project.

I described my issue on slack, but it seems to be very low populated, so I copy it here.

I’m a computer engineer and I’m interested in Clojure because of the overtone framework, which seems very good. I’m having troubles in setting up Clojure with Vim. I set up a new project with lein new test. Then cd test and lein repl. I open vim src/test/core.clj from another terminal. I want to use Repl and auto formatting, but I get “FileNotFoundException Could not locate test/core__init.class or test/core.clj on classpath. clojure.lang.RT.load (”. My (Neo)Vim configuration looks like this:

" classpath for JVM languages (i.e. Clojure)
Plug 'tpope/vim-classpath'  ​

" REPL for Clojure 
Plug 'tpope/vim-fireplace'

" Reformat
Plug 'venantius/vim-cljfmt'

Link to the chat:


Seems like this has already been resolved in Slack.

The issue was a rogue .nrepl-port file in the src directory.