Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.advocacy > #518838
| From | owl <owl@rooftop.invalid> |
|---|---|
| Newsgroups | comp.os.linux.advocacy |
| Subject | Re: Ping: VIMmaster 2000 (owl) |
| Date | 2019-07-17 16:16 +0000 |
| Organization | O.W.L. |
| Message-ID | <svub8803a.ghui4@rooftop.invalid> (permalink) |
| References | (4 earlier) <a32b8757-b558-4af9-b1ee-62be8e51699c@googlegroups.com> <fg90z009bzb.aj3@rooftop.invalid> <60d3c78f-99a0-49f5-939c-22c22ff2bb47@googlegroups.com> <szb80003gg.ago4@rooftop.invalid> <qgnca7$lrm$1@dont-email.me> |
Steve Carroll <"Steve Carroll"@nospam.none> wrote:
> On 2019-07-11, owl <owl@rooftop.invalid> wrote:
>> Steve Carroll <fretwizzer@gmail.com> wrote:
>>> On Thursday, July 11, 2019 at 10:40:47 AM UTC-6, owl wrote:
>>>> 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).
>>>
>>> Same for slrn.
>>>
>>>> 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>
>>>
>>> I don't know why I think this stuff is so disconnected once I get in Vim.
>>> Thanks for that!
>>>
>>
>> You can also split your window, open the file, yank whatever from that file,
>> and paste it into your post.
>
> On a related note, one thing that I noticed is, if copy material into a post it blows out the auto-wrap (like it's doing right now on my screen... and probably will when posted).
:help gq
You can either use it with a motion or with a visual selection.
Make a mark at the end of the pasted text (with 'ma' for example, to
use mark 'a') that you want wrapped. Go to the start of the pasted text
and type: gq'a or gw'a.
Or select visually and type gq
Or (assuming you have fmt installed)
:r! <file> |fmt
:r! set -n 10,20p <file> |fmt
Or select the already pasted text and do similar with a range of marks
or a visual selection:
:'a,'b!fmt (range of marks)
:'<,'>!fmt (visual selection - range is automatic when you hit ':')
Back to comp.os.linux.advocacy | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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