[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] make ';' after 't' work in vi-mode
From: |
Chet Ramey |
Subject: |
Re: [Bug-readline] make ';' after 't' work in vi-mode |
Date: |
Thu, 27 Sep 2018 14:04:13 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 9/27/18 12:15 PM, Richard Todd wrote:
> On Thu, Sep 27, 2018 at 11:08:19AM -0400, Chet Ramey wrote:
>> On 9/26/18 4:36 PM, Richard Todd wrote:
>>> I noticed in vi-mode, if you search with 't'/'T', then readline
>>> gets stuck on ';' (because the next letter already matches). So,
>>> from the start of this paragraph, I would expect 'te;' to take me
>>> to the 'd' in the word "vi-mode", rut readline gets stuck on the
>>> 'c' in "noticed" instead.
>>
>> Thanks for the report. It seems to me that readline implements what the
>> POSIX standard wants for t/T, but I'll take a closer look.
>
> Now that you've said that, I realize that the behavior I am after is actually
> a
> vim enhancement. When I turn on vi-compatibility mode, the cursor gets stuck
> when trying to repeat a t/T search just as it does in readline. I should have
> checked that before I posted the report--I guess I've been running vim too
> many
> years!
I wonder if an `extended-vi' option is the way to handle this.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU address@hidden http://tiswww.cwru.edu/~chet/