tpope / vim-fireplace

fireplace.vim: Clojure REPL support
https://www.vim.org/scripts/script.php?script_id=4978
1.74k stars 139 forks source link

[question] How to bring up a prompt with the last evaluated form #321

Closed jlesquembre closed 5 years ago

jlesquembre commented 6 years ago

I'm trying to create a custom map to open a prompt pre-populated with the latest previous evaluated form. Basically cqp with the last from. Is it possible?

tpope commented 6 years ago

Something like cqp<Up> ought to do it.

jlesquembre commented 6 years ago

Yes, thanks, that seems to work, but only for forms evaluated from the command line window, forms evaluated with cpp are not shown

tpope commented 5 years ago

Forms evaluated with cpp typically contain newlines, this isn't compatible with the current cqp implementation as it stands.