jpalardy/vim-slime — pull request #19 by rwstauner (2012-06-28 18:23:42+00:00)
Title: Use paste file with tmux for portablity

I tried out slime and at first all it seemed to do was make my vim unresponsive
(just prints `^C` chars at the bottom when i tried to recover).

I wrote a little wrapper script to log the tmux activity...
from what I could tell tmux was hanging waiting for more `STDIN`.
Recompiling the latest development tmux didn't help.

At one point I was seeing a tmux warning message, but I seem to have lost it,
and can't seem to reproduce it anymore (it must have been in the old version before i recompiled).
Anyway the error message made me think it might be an epoll bug
(back when I was on the tmux mailing list I heard about similar issues (like [this example](http://us.generation-nt.com/answer/bug-631984-tmux-redirecting-output-causes-hang-due-epoll-bug-help-203916221.html))),
Slime does work when I launch tmux with `EVENT_NOEPOLL=1`.

Anyway, if you'd prefer, it certainly could be an option to use STDIN.

Alternatively slime could use a tempfile (see my patch to the README)...
on my system vim removes the tempfile when it exits.
Another possible alternative would be to delete the file after pasting,
or simply emptying the file (writing an empty string to it).
That is, if anybody cares about the paste file :-)

I'd be happy to implement any of these other options if you'd prefer.
What do you think?