vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] print-prefixed-lines-til


From: Wayne Cuddy
Subject: Re: [vile] print-prefixed-lines-til
Date: Wed, 28 Sep 2016 12:10:33 -0400
User-agent: Mutt/1.5.23 (2014-03-12)

On Tue, Sep 27, 2016 at 09:39:42PM -0400, Thomas Dickey wrote:
> On Tue, Sep 27, 2016 at 08:42:31PM -0400, Wayne Cuddy wrote:
> > On Tue, Sep 27, 2016 at 07:39:49PM -0400, Thomas Dickey wrote:
> > > ----- Original Message -----
> > > | From: "Wayne Cuddy" <address@hidden>
> > > | To: "Vile List" <address@hidden>
> > > | Sent: Tuesday, September 27, 2016 4:08:35 PM
> > > | Subject: Re: [vile] print-prefixed-lines-til
> > > | 
> > > | On Tue, Sep 27, 2016 at 04:06:36PM -0400, Wayne Cuddy wrote:
> > > | > Does a function exist like print-prefixed-lines-til that will not
> > > | > prefix each line with the name of the source buffer?  All I'm after
> > > | > are line numbers.
> > > 
> > > :%num
> 
> > That's not quite exactly what I'm looking for, sorry I didn't
> > accurately describe what I wanted...
> > 
> > Specifically what I'm looking for is output in the [p-lines] buffer
> > similar to what is produced by :g,pattern,pp but without the buffer name
> > prefixed on each line.
> 
> I see (no, there's no command for that).  But you can get something like
> that using
> 
>       :e !grep -n . %
> 
> -- 
> Thomas E. Dickey <address@hidden>
> http://invisible-island.net
> ftp://invisible-island.net

Ahh that's perfect and actually faster for the large files I'm working
with.

Thanks again.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]