Ohmster
news:Xns99A3ECD65831FMyBigKitty@ :
> Blinky the Shark < @ > wrote in
> news:slrnfdn62k.6jj. @ :
>
>> 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
>> .)
>>
>> au BufNewFile,BufRead ~/.article,~/.followup :nmap
>> gg/^$
>>
>> 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
> did work to reformat and give me line wraps.
>
> How come your macro won't work in newspost as in:
>
> newspost -E -c -s "Juki 586" *
>
> " Use newspost to post to default newsgroup
> " ", -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.