How do I setup REPL on vim?

后端 未结 11 1664
花落未央
花落未央 2021-02-06 12:14

I have installed vimclojure to make it easier to start learning clojure. But, I haven\'t been able to setup REPL inside vim. This is essentially because I was not able to write

11条回答
  •  逝去的感伤
    2021-02-06 12:36

    I've found that if the NailgunClient cannot be found, VimClojure will fail silently and none of the commands will work. I'm basically just repeating Joe Holloway above, but try this to verify that the Nailgun client is actually found:

    :call vimclojure#Repl.New()
    

    In my case I forgot to build the client, so I just returned to the unzipped VimClojure folder and ran make. This creates ng, the nailgun client executable. Make sure this is in your PATH somewhere, or set

    let vimclojure#NailgunClient = "/Users/foo/vimclojure-2.1.0/ng"
    

    as mentioned above.

提交回复
热议问题