ri keys

R

R. Mark Volkmann

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?
 
J

James Britt

R. Mark Volkmann said:
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?script_id=188

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.ruby-doc.org - The Ruby Documentation Site
http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
 
C

Curt Hibbs

R. Mark Volkmann said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,174
Messages
2,570,940
Members
47,484
Latest member
JackRichard

Latest Threads

Top