Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Browsing eval results in Vim Fireplace plugin

Tags:

vim

clojure

how can one browse through previous form evaluation results in Fireplace? E.g., if two forms

(meta #'str)
(meta #'use)

are subsequently evaluated with cpp command, is there a possibility to have a glance at the output of these two evaluations in a Vim buffer or some sort of quickfix list?

Thanks!

like image 639
siphiuel Avatar asked Feb 26 '14 12:02

siphiuel


People also ask

How do I install fireplace on Vim?

Such is the way with fireplace.vim. By the way, this plugin is for Clojure. First, set up cider-nrepl. (If you skip this step, only a subset of functionality will be available.) Install Fireplace using your favorite package manager, or use Vim's built-in package support: You might also want salve.vim for assorted static project support.

Is there a no-Eval-Feature Evaluation Command in Vim?

No +eval feature no-eval-feature evaluation commands are available. To prevent this from causing Vim scripts and the matching ":endif" is ignored. Nesting of ":if" blocks is allowed, but only if the commands are at the start of the line. The ":else" command is not recognized. two ways.

How to use Eval-examples in Vim?

Examples eval-examples :" The function Nr2Bin () returns the binary string representation of a number. :" binary string, separated with dashes. : let out = out .. '-' .. Nr2Bin (char2nr (a:str [ix])) This example sorts lines with a specific compare function. There is no sscanf () function in Vim. If you need to extract parts from a

Which version of Vimscript has no +Eval feature?

Vim script version vimscript-version 11. No +eval feature no-eval-feature 12. The sandbox eval-sandbox 13. Textlock textlock Testing support is documented in testing.txt. Profiling is documented at profiling. 1. Variables variables


1 Answers

You can use :Last to get the last evaluated value and :2Last for the one before that and so on. From the official documentation (https://github.com/tpope/vim-fireplace/blob/master/doc/fireplace.txt):

                                        *fireplace-:Last*
:Last           Open the result of the last evaluation in the preview
                window.  Use :2Last to get the next-to-last result,
                and so on.  Once the window is open, cycle to older
                and newer entries with |:lprevious| and |:lnext|.
like image 162
ponzao Avatar answered Sep 23 '22 23:09

ponzao