bug-bash
[Top][All Lists]
Advanced

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

Re: binding key sequence "js" to vi-command-mode?


From: Chet Ramey
Subject: Re: binding key sequence "js" to vi-command-mode?
Date: Fri, 12 Dec 2008 22:30:22 -0500
User-agent: Thunderbird 2.0.0.18 (Macintosh/20081105)

Britton Kerin wrote:

> I'm wondering if its possible to emulate this behavior in bash.  I
> tried:
> 
>     bind -m vi-insert "js": vi-command-mode
> 
> but it doesn't seem to work: typing the sequence from insert mode
> just beeps when j is typed and then the s gets inserted.

It doesn't work because that's not the name of the command and you
have the key binding syntax slightly wrong.  Try

bind -m vi-insert '"js":vi-movement-mode'

which works fine for me using bash-3.2.48.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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