Fork me on GitHub

@schmee you can always use *1 in the REPL to refer to the result of the last thing you evaluated. that works in fireplace


so you can (def foop *1)


unless you mean you want the value of foop actually in your buffer


i feel like i heard of a way to do that, but it's not coming to mind at the moment


@schmee I think what I do for this is add a (comment ...) form, then I add forms to it and evaluate them. Then I usually throw it away or copy the code to the function I was working on.

👍 8

There was a REPL plugin for Neovim that allowed one to do ^X^O (the same way that bash allows it) to edit the current REPL command in a buffer. I wonder if you could use something like that.