Thread View: news.software.readers
20 messages
20 total messages
Started by Blinky the Shark
Mon, 03 Sep 2007 05:14
Ping OHMSTER
Author: Blinky the Shark
Date: Mon, 03 Sep 2007 05:14
Date: Mon, 03 Sep 2007 05:14
16 lines
1657 bytes
1657 bytes
Hey, plug this into your vimrc and see if it reformats the way you want
after you've edited a bunch of a reply. (I saw your req in c.e.)
au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^-- $<CR>{gq^
Do a bunch of editing; more than one para; make lines lengths ugly.
Then press F5.
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org <----------- New Site Aug 28
Re: Ping OHMSTER
Author: Troy Piggins
Date: Mon, 03 Sep 2007 05:23
Date: Mon, 03 Sep 2007 05:23
21 lines
2227 bytes
2227 bytes
* Blinky the Shark is quoted & my replies are inline below :
> Hey, plug this into your vimrc and see if it reformats the way you want
> after you've edited a bunch of a reply. (I saw your req in c.e.)
>
> au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^-- $<CR>{gq^
^^^^^^^^^
That line wrapped at an unfortunate location here. Note there
should be a space between the "^--" and the "$<CR>". There is in
Blinky's post, but when it wraps (here anyway) you could easily
miss the space.
> Do a bunch of editing; more than one para; make lines lengths ugly.
>
> Then press F5.
--
Troy Piggins | http://piggo.com/~troy
___ | __ __ ,-O (o- O
slrn macros and howto: |___ | |/ |/ | O ) //\ O
http://piggo.com/~troy/slrn ___| | | | | `-O V_/_ OOO
Re: Ping OHMSTER
Author: Blinky the Shark
Date: Mon, 03 Sep 2007 05:38
Date: Mon, 03 Sep 2007 05:38
26 lines
2272 bytes
2272 bytes
Troy Piggins wrote:
> * Blinky the Shark is quoted & my replies are inline below :
>> Hey, plug this into your vimrc and see if it reformats the way you want
>> after you've edited a bunch of a reply. (I saw your req in c.e.)
>>
>> au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^-- $<CR>{gq^
> ^^^^^^^^^
>
> That line wrapped at an unfortunate location here. Note there
> should be a space between the "^--" and the "$<CR>". There is in
> Blinky's post, but when it wraps (here anyway) you could easily
> miss the space.
It's okay as it appears here from your quote of it. :)
Thanks for pointing out a possible problem, though!
Note: that space is the third element of the sig delimiter, at which the
formatting macro is told to stop formatting at. If you hadn't sussed that.
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org <----------- New Site Aug 28
Re: Ping OHMSTER
Author: Troy Piggins
Date: Mon, 03 Sep 2007 05:51
Date: Mon, 03 Sep 2007 05:51
30 lines
2649 bytes
2649 bytes
* Blinky the Shark is quoted & my replies are inline below :
> Troy Piggins wrote:
>> * Blinky the Shark is quoted & my replies are inline below :
>>> Hey, plug this into your vimrc and see if it reformats the way you want
>>> after you've edited a bunch of a reply. (I saw your req in c.e.)
>>>
>>> au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^-- $<CR>{gq^
>> ^^^^^^^^^
>>
>> That line wrapped at an unfortunate location here. Note there
>> should be a space between the "^--" and the "$<CR>". There is in
>> Blinky's post, but when it wraps (here anyway) you could easily
>> miss the space.
>
> It's okay as it appears here from your quote of it. :)
>
> Thanks for pointing out a possible problem, though!
>
> Note: that space is the third element of the sig delimiter, at which the
> formatting macro is told to stop formatting at. If you hadn't sussed that.
I had - I have something similar. I just wanted to anticipate
possible problems and questions to save you the effort later :)
It's the kind of guy I am.
--
Troy Piggins | http://piggo.com/~troy
___ | __ __ ,-O (o- O
slrn macros and howto: |___ | |/ |/ | O ) //\ O
http://piggo.com/~troy/slrn ___| | | | | `-O V_/_ OOO
Re: Ping OHMSTER
Author: Blinky the Shark
Date: Mon, 03 Sep 2007 06:12
Date: Mon, 03 Sep 2007 06:12
35 lines
2788 bytes
2788 bytes
Troy Piggins wrote:
> * Blinky the Shark is quoted & my replies are inline below :
>> Troy Piggins wrote:
>>> * Blinky the Shark is quoted & my replies are inline below :
>>>> Hey, plug this into your vimrc and see if it reformats the way you want
>>>> after you've edited a bunch of a reply. (I saw your req in c.e.)
>>>>
>>>> au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^-- $<CR>{gq^
>>> ^^^^^^^^^
>>>
>>> That line wrapped at an unfortunate location here. Note there
>>> should be a space between the "^--" and the "$<CR>". There is in
>>> Blinky's post, but when it wraps (here anyway) you could easily
>>> miss the space.
>>
>> It's okay as it appears here from your quote of it. :)
>>
>> Thanks for pointing out a possible problem, though!
>>
>> Note: that space is the third element of the sig delimiter, at which the
>> formatting macro is told to stop formatting at. If you hadn't sussed that.
>
> I had - I have something similar. I just wanted to anticipate
> possible problems and questions to save you the effort later :)
> It's the kind of guy I am.
So you want me to say thanks *again*? ;)
What the hell. Thanks. :)
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org <----------- New Site Aug 28
Re: Ping OHMSTER
Author: Peter J Ross
Date: Wed, 05 Sep 2007 16:58
Date: Wed, 05 Sep 2007 16:58
28 lines
2081 bytes
2081 bytes
In news.software.readers on Mon, 03 Sep 2007 15:23:05 +1000, Troy
Piggins <usenet-0709@piggo.com> wrote:
> * Blinky the Shark is quoted & my replies are inline below :
>> Hey, plug this into your vimrc and see if it reformats the way you want
>> after you've edited a bunch of a reply. (I saw your req in c.e.)
>>
>> au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^-- $<CR>{gq^
> ^^^^^^^^^
>
> That line wrapped at an unfortunate location here.
You have mouldy .slrnc settings for word wrap.
I don't know exactly what the backstory was to this Ping, but wouldn't
strip_sig_regexp in .slrnrc do the job?
(Note that that's
strip_sig_regexp foo
not
set strip_sig_regexp foo
It's a command, not a variable.)
Personally I prefer to leave unconventionally delimited sigs in, so I
can comment on the sig-creator's cluelessness rudely if I want to.
--
PJR :-)
Re: Ping OHMSTER
Author: Blinky the Shark
Date: Wed, 05 Sep 2007 17:58
Date: Wed, 05 Sep 2007 17:58
38 lines
2812 bytes
2812 bytes
Peter J Ross wrote:
> In news.software.readers on Mon, 03 Sep 2007 15:23:05 +1000, Troy
> Piggins <usenet-0709@piggo.com> wrote:
>
>> * Blinky the Shark is quoted & my replies are inline below :
>>> Hey, plug this into your vimrc and see if it reformats the way you want
>>> after you've edited a bunch of a reply. (I saw your req in c.e.)
>>>
>>> au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^-- $<CR>{gq^
>> ^^^^^^^^^
>>
>> That line wrapped at an unfortunate location here.
>
> You have mouldy .slrnc settings for word wrap.
>
> I don't know exactly what the backstory was to this Ping, but wouldn't
Ohmster had been looking for such a macro.
> strip_sig_regexp in .slrnrc do the job?
This reformats all of the line lengths in the body of the reply and is
to be used after editing mucks them up. It does nothing with the sig.
The appearance of the sig delimiter in the macro tells it to *stop*
reformatting there, i.e. don't mess with the sig.
I suspect that's not what the strip_sig_regexp setting does. :)
> Personally I prefer to leave unconventionally delimited sigs in, so I
> can comment on the sig-creator's cluelessness rudely if I want to.
I, and that macro, leave them in, too.
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org <----------- New Site Aug 28
Re: Ping OHMSTER
Author: Troy Piggins
Date: Wed, 05 Sep 2007 21:21
Date: Wed, 05 Sep 2007 21:21
28 lines
2791 bytes
2791 bytes
* Peter J Ross is quoted & my replies are inline below :
> In news.software.readers on Mon, 03 Sep 2007 15:23:05 +1000, Troy
> Piggins <usenet-0709@piggo.com> wrote:
>
>> * Blinky the Shark is quoted & my replies are inline below :
>>> Hey, plug this into your vimrc and see if it reformats the way you want
>>> after you've edited a bunch of a reply. (I saw your req in c.e.)
>>>
>>> au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^-- $<CR>{gq^
>> ^^^^^^^^^
>>
>> That line wrapped at an unfortunate location here.
>
> You have mouldy .slrnc settings for word wrap.
>
> I don't know exactly what the backstory was to this Ping, but wouldn't
> strip_sig_regexp in .slrnrc do the job?
To fill you in on the "backstory", the above vim autocommand by
Blinky reformats the body of posts. The sig delimiter is just
used as an end marker for the visual selection before apply "gq".
It has nothing to do with formatting sigs.
--
Troy Piggins | http://piggo.com/~troy
** NEW whois.sl MACRO 5/9/07 ** ___ | __ __ ,-O (o- O
slrn macros and howto: |___ | |/ |/ | O ) //\ O
http://piggo.com/~troy/slrn ___| | | | | `-O V_/_ OOO
Re: Ping OHMSTER
Author: Ohmster
Date: Fri, 07 Sep 2007 02:33
Date: Fri, 07 Sep 2007 02:33
50 lines
3579 bytes
3579 bytes
On 2007-09-03, Blinky the Shark <no.spam@box.invalid> wrote:
> Hey, plug this into your vimrc and see if it reformats the way you
> want after you've edited a bunch of a reply. (I saw your req in c.e.)
>
> au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^--
> $<CR>{gq^
>
> Do a bunch of editing; more than one para; make lines lengths ugly.
>
> Then press F5.
Hey Blinky,
Sorry, I was busy with work and all and had been away from the group for
a while. I did notice this in the .vimrc file:
" Don't use Ex mode, use Q for formatting map Q gq
So that means I can use an upper case Q instead of gq for each paragraph
to reformat? Interesting. Well, in slrn, the lines to line wrap
automatically by themselves for posting and followups like it is doing
now. I don't know what pressing F5 will do now, especially that the
lines are wrapping at oh let me type a while and see what number
triggers, 74 is the number. When my lines reach 74 characters, they line
wrap by themselves when doing a followup in vim while using it for slrn.
I am now just typing away to put plenty of text in here to see what
happens when I press F5 now. Well it looks like I have enough, here are
9, make that 10 lines of text that have autoformated themselves as I
typed in slrn. When I use this for doing newspost posts, it might work
though because for doing newspost posts, I do have to use gq all the
time. Well, let's try it out now.
Oh, it was quite useful, it did compress the post quite a bit and make
it nice and compact and all fit nicely as a follow up. This even
compacted "down" and not just line lengths in that it took away extra
line spaces and all and made things really nice and neat.
Hey this is cool, thanks a lot Blinky. I am going to try this again when
I do a newspost post, I use newspost for posting large binary posts like
large videos that are broken into many rar segments with par2 recovery
files. I will let you know how this worked. I see my sig delimiter is
now highlighted in yellow. I do use the same sig in newspost by pulling
it in with :r~/sig. I put a symlink from sig to .signature in my $HOME
dir to make that easier to do. Thanks again my good friend.
--
~Ohmster | ohmster /a/t/ ohmster dot com
Put "messageforohmster" in message body
(That is MESSAGE BODY, not Subject!)
to pass my spam filter.
Re: Ping OHMSTER
Author: Ohmster
Date: Fri, 07 Sep 2007 02:38
Date: Fri, 07 Sep 2007 02:38
33 lines
2289 bytes
2289 bytes
On 2007-09-07, Ohmster <ohmster@dev.nul.invalid> wrote:
> On 2007-09-03, Blinky the Shark <no.spam@box.invalid> wrote:
>> Hey, plug this into your vimrc and see if it reformats the way you
>> want after you've edited a bunch of a reply. (I saw your req in c.e.)
>>
>> au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^--
>> $<CR>{gq^
>>
>> Do a bunch of editing; more than one para; make lines lengths ugly.
>>
>> Then press F5.
>
> Hey Blinky,
>
> Sorry, I was busy with work and all and had been away from the group for
> a while. I did notice this in the .vimrc file:
>
> " Don't use Ex mode, use Q for formatting map Q gq
Hmmm, this did get wrapped by your macro, it should have read as such:
" Don't use Ex mode, use Q for formatting
map Q gq
That should have been left alone but it is not a big deal. It is a very
cool macro though.
--
~Ohmster | ohmster /a/t/ ohmster dot com
Put "messageforohmster" in message body
(That is MESSAGE BODY, not Subject!)
to pass my spam filter.
Re: Ping OHMSTER
Author: Ohmster
Date: Fri, 07 Sep 2007 03:17
Date: Fri, 07 Sep 2007 03:17
42 lines
2747 bytes
2747 bytes
Blinky the Shark <no.spam@box.invalid> wrote in
news:slrnfdn62k.6jj.no.spam@thurston.blinkynet.net:
> Hey, plug this into your vimrc and see if it reformats the way you
> want after you've edited a bunch of a reply. (I saw your req in c.e.)
>
> au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^--
> $<CR>{gq^
>
> Do a bunch of editing; more than one para; make lines lengths ugly.
>
> Then press F5.
Blinky,
When I use vim as my editor in slrn, the lines wrap by themselves so the F5
macro is not essential. I did want to use it though for a different news
posting program, newspost which is a command line program that calls my
EDITOR, vim in my case, for doing the text preface file. I tried to use F5
in that and it did not do anything. I was able to use upper case Q <enter>
instead of gq <enter> and that did work to reformat and give me line wraps.
How come your macro won't work in newspost as in:
newspost -E -c juki.sfv -s "Juki 586" *
" Use newspost to post to default newsgroup
"alt.binaries.multimedia.pantyhose", -E open vim editor for preceding
message, -c create sfv file and specify sfv filename, -s use subject in
quotes, * all files in current directory"
I would like to use this macro for that because newspost does not offer any
auto-wrapping feature like slrn does with vim, any idea of how to make it
work?
Kewl macro, thanks!
--
~Ohmster | ohmster /a/t/ ohmster dot com
Put "messageforohmster" in message body
(That is Message Body, not Subject!)
to pass my spam filter.
Re: Ping OHMSTER
Author: Ohmster
Date: Fri, 07 Sep 2007 04:26
Date: Fri, 07 Sep 2007 04:26
85 lines
3953 bytes
3953 bytes
Ohmster <root@dev.nul.invalid> wrote in
news:Xns99A3ECD65831FMyBigKitty@194.177.96.26:
> Blinky the Shark <no.spam@box.invalid> wrote in
> news:slrnfdn62k.6jj.no.spam@thurston.blinkynet.net:
>
>> Hey, plug this into your vimrc and see if it reformats the way you
>> want after you've edited a bunch of a reply. (I saw your req in
>> c.e.)
>>
>> au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5>
>> gg/^$<CR>V/^-- $<CR>{gq^
>>
>> Do a bunch of editing; more than one para; make lines lengths ugly.
>>
>> Then press F5.
>
> Blinky,
>
> When I use vim as my editor in slrn, the lines wrap by themselves so
> the F5 macro is not essential. I did want to use it though for a
> different news posting program, newspost which is a command line
> program that calls my EDITOR, vim in my case, for doing the text
> preface file. I tried to use F5 in that and it did not do anything. I
> was able to use upper case Q <enter> instead of gq <enter> and that
> did work to reformat and give me line wraps.
>
> How come your macro won't work in newspost as in:
>
> newspost -E -c juki.sfv -s "Juki 586" *
>
> " Use newspost to post to default newsgroup
> "alt.binaries.multimedia.pantyhose", -E open vim editor for preceding
> message, -c create sfv file and specify sfv filename, -s use subject
> in quotes, * all files in current directory"
>
> I would like to use this macro for that because newspost does not
> offer any auto-wrapping feature like slrn does with vim, any idea of
> how to make it work?
>
> Kewl macro, thanks!
>
Blinky,
Here is how newspost makes temp files for editing with vim:
>From .newspostrc:
# directory for storing temporary files
tmpdir=/tmp/ohmster_newspost
Info from /tmp while making a post with vim:
[ohmster@ohmster ohmster_newspost]$ pwd
/tmp/ohmster_newspost
* Show you where we are. newspost is up with vim as the editor.
[ohmster@ohmster ohmster_newspost]$ ls -la
total 16
drwxrwxr-x 3 ohmster ohmster 4096 Sep 7 00:19 .
drwxrwxrwt 19 root root 4096 Sep 6 23:06 ..
drwx------ 2 ohmster ohmster 4096 Sep 7 00:19 newspost-mEldwU
* Showing the contents of the temp dir with active vim edit session.
[ohmster@ohmster ohmster_newspost]$ ls -la
total 16
drwxrwxr-x 3 ohmster ohmster 4096 Sep 7 00:20 .
drwxrwxrwt 19 root root 4096 Sep 6 23:06 ..
drwx------ 2 ohmster ohmster 4096 Sep 7 00:20 newspost-HN4MMs
* Show contents of temp dir with a new newspost session, new vim post
session:
[ohmster@ohmster ohmster_newspost]$
So how can I incorporate this info into your macro to make it useful in
newspost?
--
~Ohmster | ohmster /a/t/ ohmster dot com
Put "messageforohmster" in message body
(That is Message Body, not Subject!)
to pass my spam filter.
Re: Ping OHMSTER
Author: Blinky the Shark
Date: Fri, 07 Sep 2007 04:41
Date: Fri, 07 Sep 2007 04:41
54 lines
3052 bytes
3052 bytes
Ohmster wrote:
> On 2007-09-03, Blinky the Shark <no.spam@box.invalid> wrote:
>> Hey, plug this into your vimrc and see if it reformats the way you
>> want after you've edited a bunch of a reply. (I saw your req in
>> c.e.)
>>
>> au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5>
>> gg/^$<CR>V/^-- $<CR>{gq^
>>
>> Do a bunch of editing; more than one para; make lines lengths ugly.
>>
>> Then press F5.
>
> Hey Blinky,
>
> Sorry, I was busy with work and all and had been away from the group
> for a while. I did notice this in the .vimrc file:
>
> " Don't use Ex mode, use Q for formatting map Q gq
>
> So that means I can use an upper case Q instead of gq for each
> paragraph to reformat? Interesting. Well, in slrn, the lines to line
> wrap
I dunno. I just know what I've used for years. :)
> Hey this is cool, thanks a lot Blinky. I am going to try this again
> when
Yer welcome. Enjoy.
> I do a newspost post, I use newspost for posting large binary posts
> like large videos that are broken into many rar segments with par2
> recovery files. I will let you know how this worked. I see my sig
> delimiter is
I have no idea about binaries. I've never posted one.
> now highlighted in yellow. I do use the same sig in newspost by
> pulling
I'm so used to that I didn't even remember it happening. I just F5'ed
to see. :)
> it in with :r~/sig. I put a symlink from sig to .signature in my $HOME
> dir to make that easier to do. Thanks again my good friend.
That would be a good way to switch sigs on the fly, too.
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org <----------- New Site Aug 28
Re: Ping OHMSTER
Author: Blinky the Shark
Date: Fri, 07 Sep 2007 04:45
Date: Fri, 07 Sep 2007 04:45
39 lines
2673 bytes
2673 bytes
Ohmster wrote:
> On 2007-09-07, Ohmster <ohmster@dev.nul.invalid> wrote:
>> On 2007-09-03, Blinky the Shark <no.spam@box.invalid> wrote:
>>> Hey, plug this into your vimrc and see if it reformats the way you
>>> want after you've edited a bunch of a reply. (I saw your req in c.e.)
>>>
>>> au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^--
>>> $<CR>{gq^
>>>
>>> Do a bunch of editing; more than one para; make lines lengths ugly.
>>>
>>> Then press F5.
>>
>> Hey Blinky,
>>
>> Sorry, I was busy with work and all and had been away from the group for
>> a while. I did notice this in the .vimrc file:
>>
>> " Don't use Ex mode, use Q for formatting map Q gq
>
> Hmmm, this did get wrapped by your macro, it should have read as such:
>
> " Don't use Ex mode, use Q for formatting
> map Q gq
>
> That should have been left alone but it is not a big deal. It is a very
> cool macro though.
It worked the way it's supposed to work. Put a blank line between two
lines that you want to be separate paragraphs. Text on adjacent lines
is one paragraph and in that case is one paragraph that's only about 44
characters long.
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org <----------- New Site Aug 28
Re: Ping OHMSTER
Author: Blinky the Shark
Date: Fri, 07 Sep 2007 04:49
Date: Fri, 07 Sep 2007 04:49
44 lines
2965 bytes
2965 bytes
Ohmster wrote:
> Blinky the Shark <no.spam@box.invalid> wrote in
> news:slrnfdn62k.6jj.no.spam@thurston.blinkynet.net:
>
>> Hey, plug this into your vimrc and see if it reformats the way you
>> want after you've edited a bunch of a reply. (I saw your req in c.e.)
>>
>> au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^--
>> $<CR>{gq^
>>
>> Do a bunch of editing; more than one para; make lines lengths ugly.
>>
>> Then press F5.
>
> Blinky,
>
> When I use vim as my editor in slrn, the lines wrap by themselves so the F5
> macro is not essential. I did want to use it though for a different news
Okay. That's not always the case with my version of vim, when I go back
and do editing in the middle of a line/paragraph.
> posting program, newspost which is a command line program that calls my
> EDITOR, vim in my case, for doing the text preface file. I tried to use F5
> in that and it did not do anything. I was able to use upper case Q <enter>
Look at the macro. It works when the file it's editing is named
.article or .followup (new post or reply). The other program isn't
going to be passing those filenames along to vim, so the macro isn't
going to activage. IOW, it's doing just what it's supposed to do --
only be mapped to F5 when being used within slrn.
> I would like to use this macro for that because newspost does not offer any
> auto-wrapping feature like slrn does with vim, any idea of how to make it
> work?
Nope.
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org <----------- New Site Aug 28
Re: Ping OHMSTER
Author: Blinky the Shark
Date: Fri, 07 Sep 2007 04:56
Date: Fri, 07 Sep 2007 04:56
97 lines
4703 bytes
4703 bytes
Ohmster wrote:
> Ohmster <root@dev.nul.invalid> wrote in
> news:Xns99A3ECD65831FMyBigKitty@194.177.96.26:
>
>> Blinky the Shark <no.spam@box.invalid> wrote in
>> news:slrnfdn62k.6jj.no.spam@thurston.blinkynet.net:
>>
>>> Hey, plug this into your vimrc and see if it reformats the way you
>>> want after you've edited a bunch of a reply. (I saw your req in
>>> c.e.)
>>>
>>> au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5>
>>> gg/^$<CR>V/^-- $<CR>{gq^
>>>
>>> Do a bunch of editing; more than one para; make lines lengths ugly.
>>>
>>> Then press F5.
>>
>> Blinky,
>>
>> When I use vim as my editor in slrn, the lines wrap by themselves so
>> the F5 macro is not essential. I did want to use it though for a
>> different news posting program, newspost which is a command line
>> program that calls my EDITOR, vim in my case, for doing the text
>> preface file. I tried to use F5 in that and it did not do anything. I
>> was able to use upper case Q <enter> instead of gq <enter> and that
>> did work to reformat and give me line wraps.
>>
>> How come your macro won't work in newspost as in:
>>
>> newspost -E -c juki.sfv -s "Juki 586" *
>>
>> " Use newspost to post to default newsgroup
>> "alt.binaries.multimedia.pantyhose", -E open vim editor for preceding
>> message, -c create sfv file and specify sfv filename, -s use subject
>> in quotes, * all files in current directory"
>>
>> I would like to use this macro for that because newspost does not
>> offer any auto-wrapping feature like slrn does with vim, any idea of
>> how to make it work?
>>
>> Kewl macro, thanks!
>>
>
> Blinky,
>
> Here is how newspost makes temp files for editing with vim:
>
> From .newspostrc:
> # directory for storing temporary files
> tmpdir=/tmp/ohmster_newspost
>
> Info from /tmp while making a post with vim:
>
> [ohmster@ohmster ohmster_newspost]$ pwd
> /tmp/ohmster_newspost
>
> * Show you where we are. newspost is up with vim as the editor.
>
> [ohmster@ohmster ohmster_newspost]$ ls -la
> total 16
> drwxrwxr-x 3 ohmster ohmster 4096 Sep 7 00:19 .
> drwxrwxrwt 19 root root 4096 Sep 6 23:06 ..
> drwx------ 2 ohmster ohmster 4096 Sep 7 00:19 newspost-mEldwU
>
> * Showing the contents of the temp dir with active vim edit session.
>
> [ohmster@ohmster ohmster_newspost]$ ls -la
> total 16
> drwxrwxr-x 3 ohmster ohmster 4096 Sep 7 00:20 .
> drwxrwxrwt 19 root root 4096 Sep 6 23:06 ..
> drwx------ 2 ohmster ohmster 4096 Sep 7 00:20 newspost-HN4MMs
>
> * Show contents of temp dir with a new newspost session, new vim post
> session:
>
> [ohmster@ohmster ohmster_newspost]$
>
> So how can I incorporate this info into your macro to make it useful in
> newspost?
I dunno.
That said...
I use gvim, and that shows the filename being edited on its title bar.
If you can see the name of the file you're editing from newspost (all I
see are directories in what you posted) you can probably use that
instead of the references to .article and and .followup in the current
macro. Or else maybe if you don't specify any filenames it will work on
all files.
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org <----------- New Site Aug 28
Re: Ping OHMSTER
Author: Ohmster
Date: Fri, 07 Sep 2007 05:00
Date: Fri, 07 Sep 2007 05:00
54 lines
3181 bytes
3181 bytes
Ohmster <root@dev.nul.invalid> wrote in news:Xns99A4485B663EMyBigKitty@
194.177.96.26:
> So how can I incorporate this info into your macro to make it useful in
> newspost?
Blinky,
I modified the line to work with newspost as such:
au BufNewFile,BufRead ~/.article,
~/.followup,/tmp/ohmster_newspost/newspost-* :nmap <F5> gg/^$<CR>V/^--
$<CR>{gq^
Now this _does_ work, however, it does not work on the first paragraph in
the article. I just don't get it. I tried it with several different
posts, long ones, several paragraphs, long paragraphs, short ones, many,
and few. No matter what, the F5 macro does work but ignors the first
paragraph. What gives, how come this ignores the first paragraph?
This shows how newspost creates temp files:
[ohmster@ohmster ohmster_newspost]$ pwd
/tmp/ohmster_newspost
[ohmster@ohmster ohmster_newspost]$ ls -la
total 16
drwxrwxr-x 3 ohmster ohmster 4096 Sep 7 00:19 .
drwxrwxrwt 19 root root 4096 Sep 6 23:06 ..
drwx------ 2 ohmster ohmster 4096 Sep 7 00:19 newspost-mEldwU
[ohmster@ohmster ohmster_newspost]$ ls -la
total 16
drwxrwxr-x 3 ohmster ohmster 4096 Sep 7 00:20 .
drwxrwxrwt 19 root root 4096 Sep 6 23:06 ..
drwx------ 2 ohmster ohmster 4096 Sep 7 00:20 newspost-HN4MMs
[ohmster@ohmster ohmster_newspost]$
The filename is always "newspost-" with 6 random characters after it so I
made the line look like this:
/tmp/ohmster_newspost/newspost-*
That should cover it and it does because the macro now finds the temp
file and goes to work on it, just that it always ignores the first
paragraph. This is a cool macro and I really need it for this, how can I
fix it to make it work on ALL paragraphs and not ignore the first
paragraph?
Thanks.
--
~Ohmster | ohmster /a/t/ ohmster dot com
Put "messageforohmster" in message body
(That is Message Body, not Subject!)
to pass my spam filter.
Re: Ping OHMSTER
Author: Ohmster
Date: Sat, 08 Sep 2007 06:13
Date: Sat, 08 Sep 2007 06:13
33 lines
2562 bytes
2562 bytes
Blinky the Shark <no.spam@box.invalid> wrote in news:slrnfe1m43.u8u.no.spam@thurston.blinkynet.net: > Okay. That's not always the case with my version of vim, when I go > back and do editing in the middle of a line/paragraph. > >> posting program, newspost which is a command line program that calls >> my EDITOR, vim in my case, for doing the text preface file. I tried >> to use F5 in that and it did not do anything. I was able to use upper >> case Q <enter> > > Look at the macro. It works when the file it's editing is named > .article or .followup (new post or reply). The other program isn't > going to be passing those filenames along to vim, so the macro isn't > going to activage. IOW, it's doing just what it's supposed to do -- > only be mapped to F5 when being used within slrn. > >> I would like to use this macro for that because newspost does not >> offer any auto-wrapping feature like slrn does with vim, any idea of >> how to make it work? > > Nope. > Okay so, the other program does use a common filename structure, but then there are always 6 random characters. You think that the editor group could help me figure how to incorporate 6 wildcards into this macro? -- ~Ohmster | ohmster /a/t/ ohmster dot com Put "messageforohmster" in message body (That is Message Body, not Subject!) to pass my spam filter.
Re: Ping OHMSTER
Author: Blinky the Shark
Date: Sat, 08 Sep 2007 06:30
Date: Sat, 08 Sep 2007 06:30
41 lines
2989 bytes
2989 bytes
Ohmster wrote: > Blinky the Shark <no.spam@box.invalid> wrote in > news:slrnfe1m43.u8u.no.spam@thurston.blinkynet.net: > >> Okay. That's not always the case with my version of vim, when I go >> back and do editing in the middle of a line/paragraph. >> >>> posting program, newspost which is a command line program that calls >>> my EDITOR, vim in my case, for doing the text preface file. I tried >>> to use F5 in that and it did not do anything. I was able to use upper >>> case Q <enter> >> >> Look at the macro. It works when the file it's editing is named >> .article or .followup (new post or reply). The other program isn't >> going to be passing those filenames along to vim, so the macro isn't >> going to activage. IOW, it's doing just what it's supposed to do -- >> only be mapped to F5 when being used within slrn. >> >>> I would like to use this macro for that because newspost does not >>> offer any auto-wrapping feature like slrn does with vim, any idea of >>> how to make it work? >> >> Nope. > > Okay so, the other program does use a common filename structure, but then > there are always 6 random characters. You think that the editor group could Saw that. :( > help me figure how to incorporate 6 wildcards into this macro? I dunno if that's possible, but if it is and they feel like it, they probably can help. What you're more likely to get is a different approach/macro. -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project: http://improve-usenet.org <----------- New Site Aug 28
Re: Ping OHMSTER
Author: Ohmster
Date: Sat, 08 Sep 2007 12:02
Date: Sat, 08 Sep 2007 12:02
22 lines
1998 bytes
1998 bytes
Blinky the Shark <no.spam@box.invalid> wrote in news:slrnfe4gcs.9f1.no.spam@thurston.blinkynet.net: > > Saw that. :( > >> help me figure how to incorporate 6 wildcards into this macro? > > I dunno if that's possible, but if it is and they feel like it, they > probably can help. What you're more likely to get is a different > approach/macro. Hmmm... It was cool though and did point out the various possiblities of vim and a good macro to me. Thanks for sharing. -- ~Ohmster | ohmster /a/t/ ohmster dot com Put "messageforohmster" in message body (That is Message Body, not Subject!) to pass my spam filter.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads