From: Dick Davies Date: 2005-04-29T07:02:34+09:00 Subject: Re: irb command-line editing * Graham Nicholls [0459 15:59]: > Graham Nicholls wrote: > > > gabriele renzi wrote: > > > >> Graham Nicholls ha scritto: > >>> Hi. Can anyone tell me how to get vi-style command-line editing in irb, > >>> please. > >>> Thanks > >> > >> I guess you can set up your own inputrc file, since IRB is based on > >> readline, and set "editing-mode" to "vi", I never trtied it, though. > > I have a .inputrc with precisely that. ESC-k simply echoes. > > > > I've tried rebuilding from source with: > > > > ./configure --with-readline=YES ; make ; make install > > > > ,but to no avail. > > > > Is this the right redline option? DO I start irb with a parameter? > > > > Thanks > PS Sorry to followup on y own post, but when I strace the irb binary, all > the references to readline produce an ENOENT error. Readline is on the > box, as I use it from bash (unless its built in?) > Not sure if this is relevant. > > Heres part of the strace output: > > stat("./readline.rb", 0x7fffffffaad0) = -1 ENOENT (No such file or > directory) > stat("./readline.so", 0x7fffffffaad0) = -1 ENOENT (No such file or > directory) You need the readline extension - you can get it by going into the ext/readline subdirectory of the source and doing a 'make ; make install' - though you'll need the C readline library installed too. -- 'Yeah, life is hilariously cruel.' -- Bender Rasputin :: Jack of All Trades - Master of Nuns