From: Tobias Reif Date: 2002-06-04T05:20:00+09:00 Subject: Re: Word for Windows Ruby Trick james@rubyxml.com wrote: > ' Paste the copied text. First, put Vim into insert mode: > SendKeys "{ESC} i" > > ' Now insert the text with CTRL-V. It looks odd here because of the > ' SendKeys syntax for special control keys ... > SendKeys "^(v)" > > ' Save the file someplace in preparation for executing it ... > SendKeys "{ESC}:w! c:\temp\word.rb {ENTER}" > > ' Now tell Vim to execute the file using ruby > SendKeys "{ESC}:!ruby17 {%} {ENTER}" perhaps simply send "+PggVG:w !ruby ; no tempfile involved. Tobi -- http://www.pinkjuice.com/