[slim-vim] HOWTO in progress

Brad Beveridge brad.beveridge at gmail.com
Fri Jul 21 20:04:51 CDT 2006


On 21/07/06, James Fleming <lisp at electronic-quill.net> wrote:
> > > 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.
> >
> > Great!  Thanks!
>
> Hey, it's something useful that I can contribute, to follow my goofs and
> dumb questions :)
> Per Brad's suggestion, I'll add it to the wiki, plus your additions.
> Most likely some time today.
>
>
> > > 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.
> >
> > It won't, unless asdf does something really funky.  ecl-slime.lisp has
> > several forms along the lines of
> >
> >   (load "foo")
>
> It does, but my version now has:
> (defun load-slime-file (filename)
>   (load (make-pathname :defaults "/opt/pkgs/lisp-asdf/ecl-slime/"
>                        :name filename)))
>
> (load-slime-file "interface")
> ...
>
> I've put that in both ecl-slime.lisp and slime.lisp, where it loads
> "glue". I'm sure there's a more elegant way of passing the path to both
> of these, but it works pretty effectively for now.
>
> This way, the files are loaded properly regardless of where it's called
> from, and the path only needs to be edited twice (once for each defun)
> to suit the environment. Yes, I know it looks like a strange place to
> put that stuff, but it makes perfect sense in context.
>
>
> > Or maybe you plan to delete those LOADs and let ASDF do it.  That'd
> > work.  :)
>
> That looked like a good plan to me, but I haven't played with ecl+vim
> yet, so I started with something that I knew would work.
> Transforming it into an asdf package is next. If that works, it'll be
> much cleaner.
The other option could be this - ecl-slime.vim needs to have an
environment variable set to source the initial lisp file, the other
LOADs could get at this variable and do the loads like that.

I'm away from home at the moment, I have email but no real hacking
time - but if you send me a patch that makes Slim-vim more directory
friendly, I'll merge it.

Cheers
Brad


More information about the slim-vim mailing list