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.