[Top][All Lists]

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

Re: [Bug-readline] vi-mode and python shell

From: Chet Ramey
Subject: Re: [Bug-readline] vi-mode and python shell
Date: Mon, 20 Jul 2015 16:42:29 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

On 7/14/15 5:12 PM, Carlos Pita wrote:
> Hi Chet,
> I'm having problems using the some vi operators inside the python/ipython 
> shell.
> Say I have the following line with the cursor at position 0:
> ^xxxxxyxxxxx
> In the bash prompt dty will result in
> ^yxxxxx
> But inside the python shell... well, try it yourself, it's hard to
> describe. Sometimes I'm not even able to return to insert mode without
> cancelling the line. One thing is true: ty will work, but dty won't.

Thanks for the report.  This was kind of a complicated fix; the reason it
didn't work was that the readline state machine was messed up.  I will have
a fix in the next testing release of readline.

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