Now I have a decent initial version. I've tried single lines with GHCi, Python, and the shell. I've done blocks in GHCi. All seem to work fine. I guess any REPL works for single lines: Octave, R, maybe an ftp session, etc. Multiple lines with a REPL other than GHCi will require modification of the script. Please try it and let me know if it has problems or if you have any suggestions on how it could be improved. it requires GNU Screen. The biggest problem I know of with it is the 4096 byte limitation mentioned by Mr. Martinez. It would be nice to find a way around that.
Like vicle.vim and slime.vim, you will need GNU Screen. I start it with something like this:
screen -S haskellSession -t haskellSession ghciMap the commands at the bottom to convenient keys in your .vimrc. I use Enter for :SendtoreplSend and
Download sendtorepl.vim: http://www.srl.im.dendai.ac.jp/renick/sendtorepl.vim
It's time to get busy using this.
No comments:
Post a Comment