What I Learned in Conjure School


Here are a few keystrokes and facts about how to use Conjure to eval Clojure in Neovim.

Conjure is a Neovim plugin that supports multiple languages but works great for lisps. You can evaluate code in your editor.

These examples are done with vim.g.maplocalleader = ",".

I graduated from :ConjureSchool with honors.

Keystrokes

  • ,eb - evaluable entire buffer
  • ,ls - open log as split window. (Also, v, t, e)
  • ,lr - reset log
  • ,ee - eval inner form
  • ,er - eval outer-most/root form
  • ,e! - eval form and replace with result
  • ,ece - eval inner form and append result as a comment on line
  • ,em<mark> - eval form at mark (previously requires mark m<mark>) (eg, ,ema for mark a)
  • ,E - eval visual selection (in visual mode)
  • ,E<motion> - eval a motion (in normal mode) (eg, ,Eiw - "in word")

Facts

  • Every evaluation result is stored in the c register. Press "cp to paste.

More Help

In addition to :ConjureSchool, check out :h conjure and :h conjure-client-, press tab to complete, and find your client (eg, :h conjure-client-clojure-nrepl).

Try Later

Connect to a remote host to eval with :ConjureConnect staging.my-app.com 5678 if nrepl is running staging.