help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] bind -m vi-insert '"jj": "\e"' in .inputrc?


From: Clark WANG
Subject: Re: [Help-bash] bind -m vi-insert '"jj": "\e"' in .inputrc?
Date: Fri, 8 Jun 2012 09:27:05 +0800

On Thu, Jun 7, 2012 at 10:42 PM, Chet Ramey <address@hidden> wrote:
> On 6/7/12 3:22 AM, Clark WANG wrote:
>> I have following line in my .bashrc and it works fine:
>>
>>   bind -m vi-insert '"jj": "\e"'
>>
>> Now I want to move the readline settings to .inputrc. But this does not work:
>>
>>   $if mode=vi-insert
>>     "jj": "\e"
>>   $endif
>>
>> Any idea?
>
>
> Try a more direct translation.
>
> set keymap vi-insert
> "jj":"\e"

Works fine. Thanks.

>
> (The `m' option stands for `map', not `mode'.)

I have `$if mode=vi' in my .inputrc so naturally I thought it should
be `$if mode=vi-insert'. :)

>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                 ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, ITS, CWRU   address@hidden    http://cnswww.cns.cwru.edu/~chet/
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]