On Sun, Apr 16, 2006 at 05:56:19PM +0200, Nikolai Weibull wrote: > On 4/16/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > > > > Nikolai Weibull wrote: > > > > :x. > > > > > > and again position the cursor over/at the trailing space. Again execute > > > > > > :echo expand('<cWORD>') > > > > > > The expansion will be ':x.'. > > > > I don't see this, the result is empty both times. Are you sure the > > cursor wasn't on the "."? > > Yes. Perhaps this was an issue in > > VIM - Vi IMproved 7.0b BETA (2006 Mar 24, compiled Mar 26 2006 13:06:54) > > so I guess I should upgrade... > > If you don't see it then hopefully everything is fine :-).
I just compiled vim 7.0e (Normal features, default "make" on FC2 Linux) and I see the same thing that Nikolai described. Note that his first trial has leading and trailing spaces; the second trial only a trailing one. I also tried the line :x. :y. and carefully placed the cursor on the trailing space. I got ":x." again! With the cursor on the first space, I get ":y.", which seems reasonable. (I have never liked the phrase in the docs, "the WORD under the cursor." I think of the cursor as being on a character, and a word or WORD may start there ...) HTH --Benji Fisher