How do I setup REPL on vim?

后端 未结 11 1667
花落未央
花落未央 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:39

    In addition to using the correct local leader key (ie. "\" -> \sr by default), note that in order for VimClojure to start a repl, a clojure file needs to be loaded in the buffer. If you just start vim and hit \sr nothing will happen because VimClojure is not active yet.

    You can activate VimClojure by editing a file with the clj extension. From inside vim: :e test.clj

    Now when you hit \sr the repl should open. If not, see the other answer regarding checking hidden error messages.

    This tutorial is up-to-date as of time of writing and helped me get VimClojure set up with Leiningen in OSX: https://github.com/daveray/vimclojure-easy

    The more advanced setup linked to in the What's Next section was also helpful.

提交回复
热议问题