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/
>
>