[slim-vim] HOWTO in progress

James Fleming lisp at electronic-quill.net
Fri Jul 21 08:05:36 CDT 2006


Now that I've gotten it running, I figured it would be worthwhile to
document the steps as a more complete version of Brad's instructions.

It's still a little terse for a beginner, but then I don't expect
newbies to be trying this just yet.

---
Pull from darcs:
vim70+async+ecl
ecl-repl
ecl-slime
These can be found via http://wiki.alu.org/Slim-Vim-Repos

You'll need slime from cvs; instructions are at
http://common-lisp.net/project/slime/. The latest tarball may work, but
cvs definitely works for me.
Install it in whichever way is most convenient to load swank via asdf.

You'll also need ecl, from http://ecls.sourceforge.net/

Now compile ecl and then vim, ensuring you pass --enable-eclinterp to
=2E/configure when configuring vim's build.

Install ecl-slime, and edit ecl-slime.vim; the line that starts with
'exec "ecl (load \"' so that it has the correct path to ecl-slime.lisp.
This is currently line 136, but that will most likely change in future
versions.

Start up sbcl and load swank, then execute
(swank-create-server :dont-close t)

Currently, vim must be started up in the directory containing ecl-slime,
or it'll fail to load the files it references.

Having started up vim:
:so /path/to/ecl-repl.vim
:so /path/to/ecl-slime.vim

To connect to the swank-server:
<leader>-sc

To evaluate a form at the repl:
<leader>-x

Once you've done that, you're in the lisp-repl-output buffer, which is
non-modifiable. From here, use :sp to split the window, and either open
the lisp source file that you want to edit, or use :2b to open the
lisp-scratch buffer.

Knowledge of vim's buffers is very useful here.
---


On the subject of ecl-slime, I'm going to try asdf-packaging it to see
if that removes the need to start vim in its directory.


Cheers,
James



P.S. If this comes through as a dupe, it's because I forgot to set the
"From:" address on the first copy.
-- 
Stupidity killed the cat.
Curiosity was framed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.lispniks.com/pipermail/slim-vim/attachments/20060721/9743ea1d/attachment.bin


More information about the slim-vim mailing list