On Friday, 28 August 2015 18:46:00 UTC-4, Justin M. Keyes  wrote:
> On Aug 27, 2015 3:45 PM, "Gary Johnson" <[email protected]> wrote:
> 
> >
> 
> > On 2015-08-27, Christian Brabandt wrote:
> 
> > > Hi Quinn!
> 
> > >
> 
> > > On Do, 27 Aug 2015, Quinn Strahl wrote:
> 
> > >
> 
> > > > I was just reminded of another little grievance I have with
> 
> > > > :g/^/norm -- it sets the last search pattern to /^/, a very
> 
> > > > unintended side-effect.
> 
> > >
> 
> > > But that is what :g is for.
> 
> >
> 
> > Yes, but Quinn's point is that it wouldn't be necessary to use :g
> 
> > and a dummy pattern if :normal worked the way that :g does, that is,
> 
> > if ":{range}normal {commands}" first marked the lines in {range},
> 
> > then went back and executed {commands} on those marked lines.
> 
> Use
> 
>  :keeppatterns g/^/...
> 
> to avoid setting @/.

*Of course* there is a command for that. :)

Thank you, Justin, and thank you, Christian. Between a patch and a workaround I 
don't think I could ask for a better response.

Cheers!

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui