[slim-vim] ecl-repl 1.0.0 now available
Larry Clapp
larry at theclapp.org
Tue Mar 28 20:58:08 CST 2006
Hi, all,
Tired of typing :ecl a lot? Now you don't have to. See
http://theclapp.org/lisp/ecl-repl.1.0.0.vim.
Note: this has nothing to do with Slime or Swank and makes no
pretensions that it does. Hopefully, though, it'll make it easier for
those of us working on slim-vim, and will make the wait easier for the
rest.
> Purpose: Provide a way to interact with the ECL embedded in Vim.
> Overview: Creates a "repl output buffer"; most mappings copy the
> current expression to this buffer, evaluate it, print the output (if
> any), and the result. Some mappings evaluate the current expression
> and print the results at the bottom of the screen. (Those may go
> away; not sure of their usefulness.)
>
> Mappings:
> (NOTE: All mappings are global.)
>
> <leader>es - Evaluate S-expression -- prints results at bottom of
> screen
> <leader>ee - Eval Expression -- Prints results to the repl output
> buffer.
>
> The es and ee commands make very little sense, mnemonically. VILisp
> uses es, and I chose ee for the new command because it's close to es
> and easy to type. Please feel free to remap them and/or suggest
> changes.
>
> <leader>cs: eval innermost form cursor is in and print result at bottom of
> screen
> <leader>ce: eval innermost form cursor is in and send to repl output buffer
>
> visual: <leader>ee: eval marked block; send to repl output buffer.
> <leader>ev: eval variable under cursor
>
> <leader>lf - Load current file
> <leader>m1 - (emm-one) Macroexpand-1 the current expression
> <leader>me - macroexpand the current expression
>
> <leader>ri: reindent toplevel expression
> <leader>lw: add current word to 'lispwords' and reindent expression.
>
> Temp/Scratch files: as touched on above, we create two scratch
> files, one is the "repl output buffer", and one is a scratch Lisp
> buffer for ephemeral experiments. The repl output buffer is used to
> show the forms evaluated, their output, and their values; it's
> read-only and non-modifiable. The scratch buffer is for one-off
> experimentation.
>
> These two mappings navigate these two buffers.
>
> <leader>rb: view repl output buffer; splits to the repl output
> buffer; leaves cursor in current window.
> <leader>lb: split to lisp buffer; leave cursor in Lisp buffer.
Download, share, and enjoy.
-- Larry
More information about the slim-vim
mailing list