Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Live is like irb only it is meant to be used from a text editor
branch: master
Failed to load latest commit information.
bin First commit
lib description and readme typos
.gitignore v 0.1.0
Gemfile First commit
README.rdoc Edited README.rdoc via GitHub
Rakefile First commit
live.gemspec description and readme typos



Live is like irb only it is meant to be used from a text editor, it essentially polls a *nix pipe and evaluates its contents. It was devised for audiovisual livecoding (ruby-processing and scruby), a block can be bound to a key and can be called later by a keystroke.


$ [sudo] gem install live


$ live

open a new terminal

$ echo ' "hello" ' > /tmp/live-rb

You will see the code evaluated in the first terminal

$ echo 'bind_key(:a){ "key a was pressed" }' > /tmp/live-rb

When you press the key 'a' with focus on the first terminal it will call the block


To use from vim paste this in your .vimrc file

function EvalLiveRuby() range
  let text = [join(getline(a:firstline, a:lastline), ';')]
  return writefile(text, '/tmp/live-rb')

map <Leader>x :call EvalLiveRuby()<enter>

Then by pressing leader and x you will execute the range in the live session

Something went wrong with that request. Please try again.