The vim-fireplace Connect command does not start

I installed a vim fireplace, but the Connect command does not work. Error message: "Not an editor command: Connect." It makes me believe that I ruined the installation, but I can’t understand where I made a mistake.

This is what I did:

I installed the pathogen. Then I ran these commands to set the 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

+4
source share
3 answers

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

+8
source

I had a similar problem, but I found the answer on the blog and added my comments here:

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

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

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

In addition to setting the vim fireplace, vim-clojure-static and vim-classpath, I also set rainbow_parenthesis.vim as suggested by Tim Paup (author of the fireplace). First I installed vim-pathgen to control the vim runtime path setting. All of this is available on GitHub, starting at https://github.com/tpope/vim-fireplace

Alan Thompson

+2
source

I had exactly the same problem and I was able to run :Connect after (temporarily) deleting everything from the .vimrc file, except for these three lines

 set nocompatible filetype plugin indent on execute pathogen#infect() 

Now I will start restoring the step-by-step remainder of .vimrc until I find the culprit.

0
source

Source: https://habr.com/ru/post/1482406/


All Articles