From: Andrew Cowan Date: 2002-02-25T03:42:33+09:00 Subject: Re: Help with using Ri() and VIM Please disregard my post, I found and fixed the problem. I had an older version of vim running which apparently didnt support the system call, I downloaded vim 5.8 and this works fine now. -Andy Andrew Cowan wrote: > > I have installed Ri and am finding it very helpful... I found out about it > through a blurb in "The Ruby Developer's Guide", which also included the > following vim macro to use from within vim: > > --- > > function Ri() > > let b:x = system("ri '" . input("ri: ") . "' > /tmp/ri_output") > > sp /tmp/ri_output > > endfunction > > map :call Ri() > > --- > > I did this, but when I hit and then enter the object to explore I get > the following error: > > --- > > ri: Array Error detected while processing function Ri: > Unknown function: system > Invalid expression: system("ri '" . input("ri: ") . "' > /tmp/ri_output") > "/tmp/ri_output" [New File] > > --- > > I am pretty clueless about vim macros, and though this might not be the > best place to post this am hoping some of you have this woking and can > provide a solution. > > So, any ideas whats wrong? > > Thanks! > Andy > > ______________________________________________________________________ > Posted Via Uncensored-News.Com - Still Only $9.95 - > http://www.uncensored-news.com > With NINE Servers In California And Texas - The Worlds Uncensored News > Source > > ______________________________________________________________________ Posted Via Uncensored-News.Com - Still Only $9.95 - http://www.uncensored-news.com With NINE Servers In California And Texas - The Worlds Uncensored News Source