[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

R. Mark Volkmann

6/19/2005 12:25:00 PM

Can someone point me to documentation on valid keystrokes when running ri?
I'm using the one-click installer under Windows. It's not clear to me what the
proper keys are to exit, scroll down or scroll up. Is it possible to search
for words within the documentation? Is is possible to run ri so that you're
looking at the documentation inside vi or vim?

--
R. Mark Volkmann
Partner, Object Computing, Inc.


2 Answers

james_b

6/19/2005 2:48:00 PM

0

R. Mark Volkmann wrote:
> Can someone point me to documentation on valid keystrokes when running ri?
> I'm using the one-click installer under Windows. It's not clear to me what the
> proper keys are to exit, scroll down or scroll up. Is it possible to search
> for words within the documentation? Is is possible to run ri so that you're
> looking at the documentation inside vi or vim?

ri, by default I think, runs through some sort of 'more' pager. I tend
to find this annoying, so I have

RI=-T

in my Windows environment variables. (But I'm not sure if the behavior
on my machines is influence by having Cygwin installed)

There is a Ruby menu add-in for vi (well, vim or gvim at least) that
includes an option to run ri on highlighted text.

http://www.vim.org/scripts/script.php?scr...

If you are looking to run ri such that the results are automagically
piped into vim ... good question. I just hacked this:

REM This is riv.bat
call ri -T %1 >c:\temp\.ri.tmp
gvim c:\temp\.ri.tmp

Then you can call

c:\>riv String

and get the ri text in gvim


but I bet there's a better way to do this.



James

--

http://www.ru... - The Ruby Documentation Site
http://www.r... - News, Articles, and Listings for Ruby & XML
http://www.rub... - The Ruby Store for Ruby Stuff
http://www.jame... - Playing with Better Toys



Curt Hibbs

6/19/2005 4:44:00 PM

0

R. Mark Volkmann wrote:
> Can someone point me to documentation on valid keystrokes when running ri?
> I'm using the one-click installer under Windows. It's not clear to me what the
> proper keys are to exit, scroll down or scroll up. Is it possible to search
> for words within the documentation? Is is possible to run ri so that you're
> looking at the documentation inside vi or vim?
>

Have you tried fxri, which comes with the latest version of the
one-click installer? Its really impressive.

Curt