我正在尝试使用这些说明将Vim设置为Clojure编程环境:
我可以从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秒钟,这很烦人。
帮助?