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: Chet Ramey
Subject: Re: [Help-bash] bind -m vi-insert '"jj": "\e"' in .inputrc?
Date: Thu, 07 Jun 2012 10:42:21 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20120601 Thunderbird/13.0

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"

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

-- 
``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]