Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.advocacy > #516848

Re: Ping: VIMmaster 2000 (owl)

From owl <owl@rooftop.invalid>
Newsgroups comp.os.linux.advocacy
Subject Re: Ping: VIMmaster 2000 (owl)
Date 2019-07-11 16:40 +0000
Organization O.W.L.
Message-ID <fg90z009bzb.aj3@rooftop.invalid> (permalink)
References <c20c6010-1402-44d1-983e-af6703517eb2@googlegroups.com> <a9b83a.ago344@rooftop.invalid> <3d2892f6-b055-4f20-8917-5dff4c7ca611@googlegroups.com> <hb89q34gq.4@rooftop.invalid> <a32b8757-b558-4af9-b1ee-62be8e51699c@googlegroups.com>

Show all headers | View raw


Steve Carroll <fretwizzer@gmail.com> wrote:
> On Thursday, July 11, 2019 at 10:09:22 AM UTC-6, owl wrote:
>> Steve Carroll <fretwizzer@gmail.com> wrote:
>> > On Thursday, July 11, 2019 at 9:42:18 AM UTC-6, owl wrote:
>> >> Steve Carroll <fretwizzer@gmail.com> wrote:
>> >> > You may not know this 'cuz I'm on OS X but I'm trying to find the 
>> >> > location of a file that was last saved in Vim in response to a mail 
>> >> > reply on usenet (I hit 'r' instead of 'f'). I've looked in locations that
>> >> > OS X might store such things, no luck. A cooler solution would be
>> >> > if Vim could bring up 'recent' files so I can choose the one I want
>> >> > but even the 'last' saved temp file would work. I've never opened
>> >> > a file in Vim that I didn't know the name. If you reply...
>> >> > 
>> >> > <https://www.youtube.com/watch?v=BTbL88Dam2E>
>> >> > 
>> >> > ;)
>> >> 
>> >> 
>> >> :bro ol
>> >> (short for ":browse oldfiles")
>> >> 
>> >> That should work for most files you edit, but I'm not sure if it
>> >> will work with vim as an integrated editor for your newsreader.
>> >> I use vim with tin newsreader, and .article.NNN files don't show up
>> >> as recently edited files with :bro ol.  YMMV.
>> >> 
>> >> Where does your newsreader store saved articles?
>> > 
>> > I found it loose in my home directory (I should probably fix that).
>> > When using Vim as the editor for slrn, how do I open it to reply
>> > with?
>> 
>> I don't use slrn, so I can't help you there.  In tin, it just opens
>> automatically when I type 'f' for followup.
> 
> It only works the same way it does by reading a file in ('r') when
> you're not using it via slrn. I was sorta hoping there was a way to 
> bring it back to the state you last had it in but it just prepends
> the entire post into your reply. At least, it did that from a saved
> 'Mail' letter into a post, not sure the same would be true if it was
> from a 'Followup' using a pre-saved file.

'r' and 'f' in the tin sense are for 'reply' (by mail) and 'followup'
(article).

Instead of :r <file> to read in a whole file into vim, you can
:r! sed -n 10,20p <file> to read in just lines 10 through 20.

You can get the line numbers with 
:!cat -n <file>

Back to comp.os.linux.advocacy | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Ping: VIMmaster 2000 (owl) Steve Carroll <fretwizzer@gmail.com> - 2019-07-11 08:03 -0700
  Re: Ping: VIMmaster 2000 (owl) Steve Carroll <fretwizzer@gmail.com> - 2019-07-11 08:09 -0700
  Re: Ping: VIMmaster 2000 (owl) Steve Carroll <frelwizzen@gmail.com> - 2019-07-11 08:26 -0700
  Re: Ping: VIMmaster 2000 (owl) owl <owl@rooftop.invalid> - 2019-07-11 15:42 +0000
    Re: Ping: VIMmaster 2000 (owl) Steve Carroll <frelwizzen@gmail.com> - 2019-07-11 08:57 -0700
    Re: Ping: VIMmaster 2000 (owl) owl <owl@rooftop.invalid> - 2019-07-11 16:00 +0000
      Re: Ping: VIMmaster 2000 (owl) Steve Carroll <fretwizzer@gmail.com> - 2019-07-11 09:05 -0700
        Re: Ping: VIMmaster 2000 (owl) owl <owl@rooftop.invalid> - 2019-07-11 16:16 +0000
          Re: Ping: VIMmaster 2000 (owl) Steve Carroll <fretwizzer@gmail.com> - 2019-07-11 09:27 -0700
    Re: Ping: VIMmaster 2000 (owl) Steve Carroll <fretwizzer@gmail.com> - 2019-07-11 09:00 -0700
      Re: Ping: VIMmaster 2000 (owl) owl <owl@rooftop.invalid> - 2019-07-11 16:09 +0000
        Re: Ping: VIMmaster 2000 (owl) Steve Carroll <fretwizzer@gmail.com> - 2019-07-11 09:25 -0700
          Re: Ping: VIMmaster 2000 (owl) owl <owl@rooftop.invalid> - 2019-07-11 16:40 +0000
            Re: Ping: VIMmaster 2000 (owl) Steve Carroll <fretwizzer@gmail.com> - 2019-07-11 09:49 -0700
              Re: Ping: VIMmaster 2000 (owl) owl <owl@rooftop.invalid> - 2019-07-11 16:57 +0000
                Re: Ping: VIMmaster 2000 (owl) Steve Carroll <"Steve Carroll"@noSPAM.none> - 2019-07-17 14:45 +0000
                Re: Ping: VIMmaster 2000 (owl) Steve Carroll <fretwizzer@gmail.com> - 2019-07-17 07:49 -0700
                Re: Ping: VIMmaster 2000 (owl) Steve Carroll <frelwizzen@gmail.com> - 2019-07-17 08:47 -0700
                Re: Ping: VIMmaster 2000 (owl) Steve Carroll <frelwizzen@gmail.com> - 2019-07-17 10:18 -0700
                Re: Ping: VIMmaster 2000 (owl) owl <owl@rooftop.invalid> - 2019-07-17 16:19 +0000
                Re: Ping: VIMmaster 2000 (owl) Steve Carroll <frelwizzen@gmail.com> - 2019-07-17 08:01 -0700
                Re: Ping: VIMmaster 2000 (owl) owl <owl@rooftop.invalid> - 2019-07-17 16:16 +0000
                Re: Ping: VIMmaster 2000 (owl) Steve Carroll <fretwizzer@gmail.com> - 2019-07-17 11:13 -0700
                Re: Ping: VIMmaster 2000 (owl) Steve Carroll <frelwizzen@gmail.com> - 2019-07-17 11:35 -0700
              Re: Ping: VIMmaster 2000 (owl) Steve Carroll <frelwizzen@gmail.com> - 2019-07-11 10:13 -0700
      Re: Ping: VIMmaster 2000 (owl) Steve Carroll <frelwizzen@gmail.com> - 2019-07-11 09:27 -0700

csiph-web