On 10/26/17 12:21 AM, Robert Elz wrote: > Date: Wed, 25 Oct 2017 10:45:11 -0400 > From: Chet Ramey <chet.ra...@case.edu> > Message-ID: <6751ad10-cccb-0467-a751-c5be8e745...@case.edu> > > | If you read the discussion in the thread I pointed to last night, `real' > | vi supposedly does this kind of thing. I'm not enough of a vi user to > | say one way or the other. > > In real vi, ^W (word kill) only works at all on text you have currently > typed in insert mode, there is no concept of moving somewhere, entering > insert mode, and then using ^W to delete backwards, that would be a > totally foreign concept to a vi user.
OK. Posix doesn't make that distinction. If you're in insert mode, ^W deletes a `word'. I assume it's more trying to emulate the behavior of the tty driver than `real' vi. However, the word boundary characters are (again, I assume) more like `real' vi than the ones the tty driver uses. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/