vim

James Amberger 2023-06-23T04:47:31.378559Z

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.

Nundrum 2023-06-23T13:29:22.747669Z

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 K 2023-06-23T15:10:34.175949Z

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

🤯 1
James Amberger 2023-06-23T22:00:22.882269Z

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 Amberger 2023-06-23T23:49:36.109409Z

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 K 2023-06-23T23:51:47.654529Z

Oh I misunderstood

Jan K 2023-06-23T23:53:53.110709Z

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

James Amberger 2023-06-24T01:26:03.633849Z

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 Amberger 2023-06-24T01:27:30.965839Z

ok just figured out one way: :silent Eval expr

👍 1