Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vim-fireplace Connect command won't run

I've installed vim-fireplace, but the Connect command doesn't work. The error message is "Not an editor command: Connect". This leads me to believe I've messed up the installation but I can't figure out where I went wrong.

This is what I did:

I installed pathogen. Then I ran these commands to install fireplace:

cd ~/.vim/bundle

git clone git://github.com/tpope/vim-fireplace.git

git clone git://github.com/tpope/vim-classpath.git

git clone git://github.com/guns/vim-clojure-static.git

This is my .vimrc http://pastebin.com/7Mfk7xJD

like image 796
triplej Avatar asked Dec 16 '22 10:12

triplej


2 Answers

You will likely find that it works after you do :set filetype=clojure. The plugin is only active when editing clojure files or when you run this command.

like image 134
noahlz Avatar answered Dec 21 '22 09:12

noahlz


I had similar trouble, but found an answer in a blog posting and add my comments here:

http://cooljure.blogspot.com/2013/07/how-to-set-up-clojure-nrepl-using-vim.html

I am using Fedora 18, and the key seems to be that you need to create a project first using "lein new ", then begin both the vim edit session and the "lein repl" from within the project directory. Example:

> lein new fire
> cd fire
> lein repl
> gvim src/fire/core.clj

Besides installing vim-fireplace, vim-clojure-static, and vim-classpath, I also installed rainbow_parenthesis.vim as suggested by Tim Pope (author of fireplace). I first installed vim-pathgen to handle the vim runtime path setup. All of this is available on GitHub, starting at https://github.com/tpope/vim-fireplace

Alan Thompson

like image 20
Alan Thompson Avatar answered Dec 21 '22 10:12

Alan Thompson