[slim-vim] progress - great!

Brad Beveridge brad.beveridge at gmail.com
Wed Jul 12 13:10:41 CDT 2006


On 12/07/06, Sampo Vuori <sampo at vuoret.net> wrote:
> I see you guys are working hard.. thanks for the effort for bringing
> the lisp hacking power to vim =)
>
> Is there any quick-and-dirty-how-to-hack-lisp-on-vim guide anywhere?
> What archive(s) should I get, what to(how to) compile it?
>
> Can slim-vim already talk to an external lisp process, SBCL for
> example? If so, great! I think the feature I use most with emacs+slime
> is sending forms to SBCL to be compiled or evaluated (of course the
> result is pretty important too :)
>
> - Sampo

Hey Sampo, great to hear there are other Vim Lisper's out there!
There isn't a quick and dirty guide (yet), but we can help you get
running - and when you are sorted I'll write up what steps we took.
For the record I'm working with OSX intel, and I am pretty sure that
any Linux will work without too many hassles - working from Windows
might be harder & I really won't be able to help too much there.
Also, SBCL is currently our target Lisp and CLisp latest version is
known to not work.

To answer your questions:
  Slim-vim can talk to an external Lisp process & infact SBCL is our
only tested and known good target.
 Slim-vim can evaluate forms in the external Lisp process - for forms
that have no errors the result actually doesn't go anywhere except a
debug buffer, but I can fix that tonight so it goes to the vim status
bar.

Here is a basic, off the top of my head guide though:
1) Get Darcs from http://abridgegame.org/darcs/
2) Get Vim+ECL and ecl-slime from here http://wiki.alu.org/Slim-Vim-Repos
3) Get ECL from http://ecls.sourceforge.net/
4) Compile ECL following the instructions on the home page
5) Compile Vim+Async+ECL, on Darwin I configure with
  ./configure --prefix=/opt/local --enable-eclinterp --disable-darwin
  The important part is really the "--enable-eclinterp" part
6) From within Vim, source the file ecl-slime.vim
7) Start an SBCL image and
- load swank-loader
- run (swank:create-server :dont-close t)
8) From Vim, open up ecl-slime.vim and check out the key bindings
  - <Leader>sc - connect to slime
  - <Leader>x - execute the current form on the SBCL Lisp

I've probably got some steps wrong, so please let us know how you get
on.  I'll be more accurate with my advice when I'm not at work :)

Good luck, and welcome aboard!
Brad


More information about the slim-vim mailing list