On Aug 27, 2015 3:45 PM, "Gary Johnson" <garyj...@spocom.com> 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 @/.

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui