Fork me on GitHub
#vim
<
2023-06-23
>
James Amberger04:06:31

Any vim-fireplace user know how to eval a form but skip displaying it in the pager (which may take a long time)? After that I would run :Last to see it in the preview window.

Nundrum13:06:22

I don't know of any way to do that from fireplace. Might be a good feature request? But when I've had a similar need, I just capture the form in a future and check on it later.

Jan K15:06:34

You can hit Ctrl+d to push your long-running evaluation into background and continue editing.

🤯 2
James Amberger22:06:22

Great suggestions—thanks. I didn’t know about ctrl-d and have been mashing ctrl-c and q (for the pager) in frustration. I will try these.

James Amberger23:06:36

hm Ctrl-d doesn’t seem to be doing the trick—it’s not the evaluation that’s taking a long time, it’s the dumping of the value to the screen.

Jan K23:06:47

Oh I misunderstood

Jan K23:06:53

I guess I would evaluate (do (form) nil) instead of (form), or (def result (form)) to examine it later

James Amberger01:06:03

ok. I was looking for a way to get result into :Last or another buffer. I’ll update this thread if I figure something out

James Amberger01:06:30

ok just figured out one way: :silent Eval expr

👍 2