20090420

When using map in a vim script...

I was struggling with editing this script when calling the map function. What I was missing was that in the expression following the list (l:block in the example below), it's necessary to surround your function call in single quotes, like this:
  • call map(l:block,'Vicle_strip_birds(v:val)')
That's because even though it's a function call, it's a string as far as the map function is concerned. That's kind of weird for me.

*Shrug*

At least the script works now.

20090417

interacting with a REPL from vim

This is a really good starting point for using vim with a REPL (Wikipedia says calling it an "interpreter" is wrong). Mr. Martinez has done a nice job.

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

I've wanted something this simple for a while. Being used to scvim for SuperCollider, I wanted the same thing when using other interpreted languages, like Octave, Scheme, and now Haskell. I tried other similar scripts, but they were too complex. This is almost right. I'm modifying it to suit me, and then I'll post it.