help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] How to make vi-insert mode's ctrl-w work in the 4.3 way?


From: Greg Wooledge
Subject: Re: [Help-bash] How to make vi-insert mode's ctrl-w work in the 4.3 way?
Date: Fri, 4 Nov 2016 10:40:00 -0400
User-agent: Mutt/1.4.2.3i

On Fri, Nov 04, 2016 at 10:32:17AM -0400, Chet Ramey wrote:
> On 11/4/16 6:30 AM, Clark Wang wrote:
> > For example, if I have inputted the following after the prompt:
> > 
> > # foo "abc"
> > 
> > In bash 4.3's vi-insert mode, when I press ctrl-w it'll delete the whole
> > "abc" (including quotes). But with 4.4 I have to press ctrl-w for 3 times
> > (one for the right " char, one for abc and one for the left " char).
> 
> This was changed due to a bug report about readline not being Posix-
> conformat with its ^W binding in vi insert mode.  Posix specifies that
> word boundaries include whitespace and punctuation.  Apparently vi is
> the same, but I'm not enough of a vi user to say.

Both vim (versions 6.1 and 7.4) and /usr/bin/vi (on HP-UX 10.20) act
this way.



reply via email to

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