无法让VimClojure与NGServer交谈

时间:2012-10-29 20:42:02

标签: clojure leiningen nailgun vimclojure

我正在尝试使用这些说明将Vim设置为Clojure编程环境:

http://naleid.com/blog/2011/12/19/getting-a-clojure-repl-in-vim-with-vimclojure-nailgun-and-leiningen/

我可以从Leiningen项目的根目录开始ng-server。但每当我尝试在vim中启动repl时,我得到:

; Use \p to close this buffer!

VimClojure could not initialise the server connection.
That means you will not be able to use the interactive features.
Reasons might be that the server is not running or that there is
some trouble with the classpath.

VimClojure will *not* start the server for you or handle the classpath.
There is a plethora of tools like ivy, maven, gradle and leiningen,
which do this better than VimClojure could ever do it.

我安装了VimClojure插件并将这些行添加到我的.vimrc文件中:

let vimclojure#NailgunClient = "~/bin/ng"
let vimclojure#WantNailgun = 1

let g:clj_highlight_builtins=1      " Highlight Clojure's builtins
let g:clj_paren_rainbow=1           " Rainbow parentheses'!

RainbowParens正在运行,我可以在命令行上从ng获得回复。

我也试过slime.vim。虽然它有效,但在(+ 2 3)中输入一个简单的vim响应需要整整5秒钟,这很烦人。

帮助?

0 个答案:

没有答案