Endoscreen Cut&Paster
emacs
has the fabulous SLIME mode which turns emacs into a LISPmachine, with interactive inspection and whatnot. It talks over TCP to a LISP REPL wrapped inSWANK
, executing a huge palette of commands to debug and trace code, as well as the more-or-less trivial evaluation of code snippet fromemacs
buffers.As a very weak approximation in
vim
there's jpalardy's vim-slime which usesscreen
to paste stuff fromvim
into ascreen
window presumably running a REPL. The implementation is totallyvim
specific.If the action is just to paste stuff into another window using
screen
's own-X
option then it should be doable with a shellscript. So here areswan
andslim
.
swan
starts the Chicken Scheme REPL and injects the window's identifier into
screen
's environment.
slim
- pastes its
stdin
into the REPL window.Combined with good-old
vi
'smap
keybinding command this is just as powerful asvim-slime
but more flexible.My
.exrc
now contains the line:map C !%slim^Mwhich pastes text between matching parens into the REPL.
Update
slim
now usesscreen
's registers
so that the copy/paste register remains untouched.
Fri, 03 May 2013
[/projects]
permanent link