I'm wondering if I can make a Vim plugin that sends forms over to the REPL session that le开发者_开发问答in repl
starts. Is there a way to send messages to an existing jline.ConsoleRunner process?
Slightly OT, but this is what nrepl is for. IIUC, vimclojure uses nrepl now for the REPLs it starts, and allows you to connect to remote Clojure processes that have started an nrepl server. I don't think Leiningen has an nrepl plugin, though (yet).
You may find the slimv vim plugin helpful.
see this SO question Sending input to a screen window from vim
A general approach is to start a screen session run lein repl, then sent the vim output to the screen session.
https://github.com/sattvik/lein-tarsier does more or less that ... I don't know if it's using nrepl or not, but with lein-tarsier you can have vimclojure talk via nailgun to a JVM which is also running a REPL. HTH
精彩评论