Bill McCarthy wrote:

> On Wed 20-Sep-06 1:08pm -0600, Tim Chase wrote:
> 
> > I hadn't seen a reply to this fly by, so I thought I'd let you
> > know it wasn't entirely ignored :)
> 
> >> It appears that ":s/pattern" produces the same result as
> >> ":s/pattern//".  I couldn't find that behavior in the docs.
> >> 
> >> A hidden feature?  (Or was I just not creative enough using
> >> helpgrep?)
> 
> > I'm not sure I've seen it anywhere in the docs, but I've noticed
> > the same behavior not only in ex/vi/vim, but also in ed.  I was
> > originally hesitant to use it, not sure whether it was unintended
> > and if it would be there from version to version.  However, after
> > finding it consistent from version 5.x of vim forward, in classic
> > vi, as well as ed, I presume it's an undocumented feature, and
> > have begun using it when I have the need.
> >
> > I scoured through the help, looking in a multitude of places I
> > deemed sensible, and couldn't find anything documented either.
> 
> Thanks, Tim, for confirming this feature.
> 
> Bram, could you please add a note to the help for ':s' that
> documents this feature?

I thought this was explained somewhere, but I can't find it.  I'll add a
remark below the explanation of an empty pattern.

-- 
Snoring is prohibited unless all bedroom windows are closed and securely
locked.
                [real standing law in Massachusetts, United States of America]

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to