Fork me on GitHub
#vim
<
2018-04-06
>
dave01:04:41

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

dave01:04:52

so you can (def foop *1)

dave01:04:21

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

dave01:04:38

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

eraserhd14:04:14

@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
eraserhd14:04:24

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.