You are not logged in.

#1 2010-09-26 05:38:04

pradtf
Member
Registered: 2009-06-10
Posts: 149

vim with limp [SOLVED]

i've yaourted limp and i'm looking at the docs:
http://mikael.jansson.be/hacking/limp/docs/

however, other than putting stuff in /usr/share/vim/ftplugin/lisp/vim nothing much is happening.

looking at limp.vim i see:

runtime ftplugin/lisp/limp/cursor.vim
runtime ftplugin/lisp/limp/highlight.vim
runtime ftplugin/lisp/limp/sexp.vim
runtime ftplugin/lisp/limp/bridge.vim
runtime ftplugin/lisp/limp/autoclose.vim
runtime ftplugin/lisp/limp/keys.vim
runtime ftplugin/lisp/limp/mode.vim

so i put a softlink in the ftplugin/lisp/ dir to vim, but that didn't accomplish anything either.

anyone know how to get limp working with vim?
(of course, i installed sbcl)

Last edited by pradtf (2010-09-26 17:10:11)


in friendship,
prad

Offline

#2 2010-09-26 05:54:00

pradtf
Member
Registered: 2009-06-10
Posts: 149

Re: vim with limp [SOLVED]

ok some progress has just been made!
by putting a softlink in .vim/ftplugin/lisp -> /usr/share/vim/ftplugin/lisp
it comes on.

now to try to figure out what to do with it as per mikael's doc.

<F12> works but it doesn't seem to start a limp connection hanging on Booting ... indefinitely.

now this document provides some idea:
https://bugs.archlinux.org/task/17774

but i'm not sure how to proceed since changing

LIMPDIR=${LIMPRUNTIME:-/usr/local/limp/$VERSION}
to
LIMPDIR=${LIMPRUNTIME:-/usr}

did zilch.

no wait actually it works but i have to start lisp manually after changing the LIMPDIR:
lisp.sh test -b
then i can (g)vim into the program and <F12> and follow mikael's doc.

this discussion was what provided the info:
http://www.lispforum.com/viewtopic.php?f=17&t=3

so we'll see where this goes, but at least this much is working now.

Last edited by pradtf (2010-09-26 06:51:49)


in friendship,
prad

Offline

#3 2010-09-26 17:09:41

pradtf
Member
Registered: 2009-06-10
Posts: 149

Re: vim with limp [SOLVED]

ok we can mark this as solved. here are my steps to get limp working with vim on arch:

1. install limp:
yaourt -S vim-limp

2. softlink to the limp to meet /usr/share/vim/ftplugin/lisp/vim/limp.vim requirements:
sudo ln -s /usr/share/vim/ftplugin/lisp ~/.vim/ftplugin/lisp
(or i suppose you could just copy the directory into ~/.vim/ftplugin)

3. edit /usr/bin/lisp.sh:
LIMPDIR=${LIMPRUNTIME:-/usr/local/limp/$VERSION}
to
LIMPDIR=${LIMPRUNTIME:-/usr}

4. copy the color scheme if you want:
cp /usr/share/vim/ftplugin/lisp/vim/desert256.vim ~/.vim/colors/

5. start a lisp in terminal:
/usr/bin/lisp.sh alisp -b

6. get the sbcl window in same terminal:
/usr/bin/lisp.sh alisp

7. start vim with your lisp program (you can use gvim, preferably with another color scheme) in a separate terminal, because then you can see what you are doing without having to switch back and forth between vim and sbcl in the same window

the system is really good!
check out the docs on how to use with 2 links i posted above.
many thanks to Mikael Jansson for creating this interface.


in friendship,
prad

Offline

#4 2010-09-26 20:16:23

pradtf
Member
Registered: 2009-06-10
Posts: 149

Re: vim with limp [SOLVED]

right after completing the above, i came across vim-slimv.

this excellent work is thx to tamas kovacs!

on first examination it appears to me to be a far superior system: very nice docs, works right off the bat without any alterations, seems to be able to do more things (though i haven't explored enough yet), seems to be more slime-like overall, newer updating (2010 vs 2008).

does anyone have thoughts on these 2 vim systems for lisp?

Last edited by pradtf (2010-09-26 20:19:35)


in friendship,
prad

Offline

Board footer

Powered by FluxBB