I can successfully configure both Slimv and VimClojure but I wonder if I can set any of those to work with any swank server (ritz for example).
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In theory Slimv can connect to any swank server, but there is no autodetection currently for ritz-swank. So if you want to use ritz, then you need to start the swank server manually, or define the shell command for Slimv that starts the swank server, e.g. by adding a similar line to your .vimrc (assuming you run ritz on Linux via Leiningen):
let g:slimv_swank_clojure = '! xterm -e lein ritz 4005 &'Recent versions of ritz-swank had some protocol changes, so I suggest that you get the most recent Slimv version from the repository, which adds a new function ‘Break on Exception’.
You can of course use swank-clojure as well via
lein swank, and Slimv can autodetect and run it for you.I’m the author of Slimv, I plan to add more support for ritz, as swank-clojure seems to be abandoned now. If you have any problems with Slimv, please feel free to contact me.
EDIT: I have now added a simple autodetection for ritz-swank: if Slimv finds
~/.lein/plugins/lein-ritz*.jarthen it is able to start ritz-swank by pressing,c.