Skip to content

Instantly share code, notes, and snippets.

@joakin
Created October 30, 2014 07:43
Show Gist options
  • Save joakin/99d4b8d1983f86a3701d to your computer and use it in GitHub Desktop.
Save joakin/99d4b8d1983f86a3701d to your computer and use it in GitHub Desktop.
chestnut and vim-fireplace

A previous post asking how to get vim-fireplace to work with a browser-repl from chestnut just got deleted. Here is my solution, in case anybody else has been wondering.

Ok I finally got this to work using the advice from /u/joshuadavey.

My precise steps:

Open vim
Back in the terminal, run lein repl
In the repl, do (run)

In vim, open the cljs file and do

:Piggieback (weasel.repl.websocket/repl-env :ip "0.0.0.0" :port 9001)

Open browser to http://localhost:10555/

In vim, cqc (js/alert "woohoo!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment