Endoscreen Cut&Paster
emacshas 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 fromemacsbuffers.As a very weak approximation in
vimthere's jpalardy's vim-slime which usesscreento paste stuff fromviminto ascreenwindow presumably running a REPL. The implementation is totallyvimspecific.If the action is just to paste stuff into another window using
screen's own-Xoption then it should be doable with a shellscript. So here areswanandslim.
swanstarts the Chicken Scheme REPL and injects the window's identifier into
screen's environment.
slim- pastes its
stdininto the REPL window.Combined with good-old
vi'smapkeybinding command this is just as powerful asvim-slimebut more flexible.My
.exrcnow contains the line:map C !%slim^Mwhich pastes text between matching parens into the REPL.
Update
slimnow usesscreen's registersso that the copy/paste register remains untouched.
Fri, 03 May 2013
[/projects]
permanent link