First Release of Chimp available

3 views
Skip to first unread message

Meikel Brandmeyer

unread,
Aug 18, 2008, 6:47:00 PM8/18/08
to clo...@googlegroups.com
Dear vimming Clojurians,

the first release of Chimp is available. It is similar to Limp, VILisp,
fvl and the previously mentioned Slime-like plugin.

Hopefully it provides more comfort out of the box. Current features:
- send a visual block
- send inner sexp
- send outer sexp
- send whole file
- automatic namespace handling (based on some heuristics)

The package obviously works on Unix and (with a few configuration steps)
it should equally well work on Windows with Cygwin. However the latter
is not very well tested.

The homepage is:
http://kotka.de/projects/chimp.html

At vim.org:
http://www.vim.org/scripts/script.php?script_id=2348

The repository is:
http://kotka.de/repositories/hg/chimp

Extraction of sexps depends on the syntax highlighting of the latest
release of VimClojure (v1.1.1).

Any feedback is appreciated.

Sincerely
Meikel

Jonas Bengtsson

unread,
Oct 8, 2008, 5:16:38 PM10/8/08
to Clojure
Hi Meikel,

Trying to get Chimp running under cygwin. It seems like it depends on
the following packages: vim, screen, util-linux (for getopt).

However, when I try to run chimp, screen flashes only to terminate. Is
that the way it's supposed to work?

What are the exact steps to use chimp? Is the idea that I should
launch chimp and then launch vim inside the screen session?

Thanks in advance,
Jonas

Meikel Brandmeyer

unread,
Oct 8, 2008, 6:07:51 PM10/8/08
to clo...@googlegroups.com
Hello,

Am 08.10.2008 um 23:16 schrieb Jonas Bengtsson:

> Trying to get Chimp running under cygwin. It seems like it depends on
> the following packages: vim, screen, util-linux (for getopt).

I use it at work with a Windows vim and Cygwin screen. The idea is to
start clojure with the chimp wrapper. This sets up the screen and starts
the clojure REPL:
chimp.sh -- rlwrap java -cp clojure.jar clojure.lang.Repl

Or whatever you use to start your clojure. It should give a screen with
a running REPL. At the bottom you get the so-called "Chimp ID". This is
used to contact the screen from Vim, which runs outside the screen.

For a cygwin vim, it should actually work as is. For a Windows vim you
maybe have to adjust the path to the temporary directory. I must
confess, that I don't know my settings at work by heart. I will check
tomorrow and provide my settings as an example.

Hope this helps for the moment.

Sincerely
Meikel


Jonas Bengtsson

unread,
Oct 8, 2008, 8:41:03 PM10/8/08
to Clojure
Hi,

Excellent, thanks!

It almost works now, however something fishy is going on when it tries
to launch screen from vim. I've done the following setting:
:let g:chimp#ScreenCommand="/usr/bin/screen"
which means that chimp.vim executes:
call system('/usr/bin/screen -x 8844.chimp -X eval "select 0"
"readbuf" "paste ."')
but nothing happens. I've tried to run it manually from vim as well to
no avail. However, if I run the command in bash it just works so the
error seems to be in vim. I've tried to do the following in vim as
well, and it works so I know that vim can execute screen:
:call system("/usr/bin/screen -list > screenlist")

Sorry for getting a bit OT but I'd really like to get this thing
working. If anyone has any idea I would very much appreciate it!

Cheers,
Jonas

Mitch

unread,
Oct 9, 2008, 12:41:21 AM10/9/08
to Clojure
I've been using chimp a little bit, and it works pretty well except
for the \ef command. It gives me the following error:
E119: Not enough arguments for function: <SNR>31_EvalFile

All the other commands work fine though! Thanks for the plugin!

-Mitch
>  smime.p7s
> 5KViewDownload

mb

unread,
Oct 9, 2008, 10:25:20 AM10/9/08
to Clojure
Hello,

On 9 Okt., 02:41, Jonas Bengtsson <jona...@gmail.com> wrote:
> It almost works now, however something fishy is going on when it tries
> to launch screen from vim. I've done the following setting:
Do you also use the VimClojure plugin? Chimp heavily relies on its
syntax highlighting. Of course one has to have a visual block for \eb
or
one has to be in a sexp for \et. If not, they fail silently. I have to
add some diagnostics here...

Otherwise you can check, that Chimp and screen expect the temporary
files in the same directory. But in case you use a "cygwin" vim, this
should be the case.

Sincerely
Meikel

mb

unread,
Oct 9, 2008, 10:27:08 AM10/9/08
to Clojure
Hello,

On 9 Okt., 06:41, Mitch <mitchell.kot...@gmail.com> wrote:
> I've been using chimp a little bit, and it works pretty well except
> for the \ef command. It gives me the following error:
> E119: Not enough arguments for function: <SNR>31_EvalFile
Please report such issues! Otherwise they can't be fixed.

> All the other commands work fine though! Thanks for the plugin!
:) Thanks for using it.

Sincerely
Meikel
Reply all
Reply to author
Forward
0 new messages