readline + binding; still frustrated after 4 yrs of trying
William Case
billlinux at rogers.com
Fri Mar 12 01:15:43 UTC 2010
Hi;
On Thu, 2010-03-11 at 16:42 -0800, Michael Elkins wrote:
> On Thu, Mar 11, 2010 at 07:18:28PM -0500, William Case wrote:
> > ]$ bind "\e\C-b": backward-word
> >
> > Tried it on a several word command line from History. No motion.
>
> Because of the peculiarities of shell quoting, you need to quote the
> key sequence inside single quotes because the double quotes are
> significant to bind
>
> bind '"\e\C-b"':backward-word
>
> Also note the lack of space around the colon when using the 'bind'
> command as opposed to putting it in ~/.inputrc.
>
An explanation or example with the man bash bind command would be
helpful !!
Did it. Got it. The '"\e\C-b"':backward-word
binding works.
Now the question is, how do I set it up in my .inputrc? Just try "\e
\C-b": backward-word ? Or \e^B ?
How can I test that readline is even reading my .inputrc?
--
Regards Bill
Fedora 12, Gnome 2.28
Evo.2.28, Emacs 23.1.1
More information about the users
mailing list