Thread View: news.software.readers
13 messages
13 total messages
Started by DC
Mon, 03 Nov 2003 16:28
[slrn] ping: SINNER - long attrib lines
Author: DC
Date: Mon, 03 Nov 2003 16:28
Date: Mon, 03 Nov 2003 16:28
16 lines
1604 bytes
1604 bytes
Hey, question for ya. Without fail, whenever I reply to one of your posts, your attrib line causes slrn to issue a line length warning. I have to re-edit and ^Q to wrap your attrib line before it will let me post. How can I fix this? Using gVim, here's the slrnrc entry: set editor_command "gvim -f +'/^$/ +1' +'colo elflord' +'set comments=nb:> ' +noh +'set tw=72' +%d '%s'" Ideas? Thx. -- DC Microsoft is not the answer, it is the question. The answer is NO.
Re: [slrn] ping: SINNER - long attrib lines
Author: SINNER
Date: Mon, 03 Nov 2003 17:41
Date: Mon, 03 Nov 2003 17:41
28 lines
2107 bytes
2107 bytes
While strolling through news.software.readers, DC was overheard plotting: > Hey, question for ya. > > Without fail, whenever I reply to one of your posts, your attrib > line causes slrn to issue a line length warning. I have to > re-edit and ^Q to wrap your attrib line before it will let me > post. How can I fix this? > > Using gVim, here's the slrnrc entry: > > set editor_command "gvim -f +'/^$/ +1' +'colo elflord' +'set > comments=nb:> ' +noh +'set tw=72' +%d '%s'" > > Ideas? Thx. > Hmmm, I would check but my damn connection seems down ATM, I know I have a setting in there but cant recall it. When I get home tonight (or maybe after I get home from the Mavricks Game) I will post an update. You can of course turn off that particular warning as well, but as I said, unless someone beats me to it I will figure it out tonight and revert, unless of course my ssh connection restores anytime today. -- David
Re: [slrn] ping: SINNER - long attrib lines
Author: Blinky the Shark
Date: Mon, 03 Nov 2003 19:45
Date: Mon, 03 Nov 2003 19:45
32 lines
2283 bytes
2283 bytes
DC wrote:
> Hey, question for ya.
> Without fail, whenever I reply to one of your posts, your attrib line
> causes slrn to issue a line length warning. I have to re-edit and ^Q to
> wrap your attrib line before it will let me post. How can I fix this?
> Using gVim, here's the slrnrc entry:
> set editor_command "gvim -f +'/^$/ +1' +'colo elflord' +'set comments=nb:> ' +noh +'set tw=72' +%d '%s'"
> Ideas? Thx.
Here ya go. Stick this in your rc for the editor, and change the
keymapping as desired (F5, here). It will smart-reformat the whole body of
your post. Try it...you'll like it. :)
(Including my comments, from said file, for information value)
" keybinding: body only formatting keybinding for normal mode for slrn - thanks
" Tim Hammerquist. return cursor to place it was at when insert mode last left
" note: `^ is my add
au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^-- $<CR>{gq`^
I'm not using it with this post, to keep command from wrapping.
--
Blinky - - - - - - - - - - - - - - - - - - - - - - - Linux RU 297263
Microsoft, 23 Oct: "As a result of challenges to our business model,
sales of our products may decline, we may have to reduce the prices
we charge for our products..." http://snipurl.com/open_source
Re: [slrn] ping: SINNER - long attrib lines
Author: DC
Date: Mon, 03 Nov 2003 21:45
Date: Mon, 03 Nov 2003 21:45
39 lines
2759 bytes
2759 bytes
On 3 Nov 2003 19:45:22 GMT, Blinky the Shark <no.spam@box.invalid> wrote:
> DC wrote:
>
>> Hey, question for ya.
>
>> Without fail, whenever I reply to one of your posts, your attrib line
>> causes slrn to issue a line length warning. I have to re-edit and ^Q to
>> wrap your attrib line before it will let me post. How can I fix this?
>
>> Using gVim, here's the slrnrc entry:
>
>> set editor_command "gvim -f +'/^$/ +1' +'colo elflord' +'set comments=nb:> ' +noh +'set tw=72' +%d '%s'"
>
>> Ideas? Thx.
>
> Here ya go. Stick this in your rc for the editor, and change the
> keymapping as desired (F5, here). It will smart-reformat the whole body of
> your post. Try it...you'll like it. :)
>
> (Including my comments, from said file, for information value)
>
> " keybinding: body only formatting keybinding for normal mode for slrn - thanks
> " Tim Hammerquist. return cursor to place it was at when insert mode last left
> " note: `^ is my add
> au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^-- $<CR>{gq`^
>
> I'm not using it with this post, to keep command from wrapping.
OK, added to ~/.gvimrc but just get system bell when I hit F5. I
suspect that it is a path issue(?)
I'll play with it. Come back if you can confirm, tho'.
Thanks.
--
DC
Microsoft is not the answer, it is the question. The answer is NO.
Re: [slrn] ping: SINNER - long attrib lines
Author: Blinky the Shark
Date: Mon, 03 Nov 2003 22:23
Date: Mon, 03 Nov 2003 22:23
40 lines
2594 bytes
2594 bytes
DC wrote:
> On 3 Nov 2003 19:45:22 GMT, Blinky the Shark <no.spam@box.invalid>
> wrote:
>> Here ya go. Stick this in your rc for the editor, and change the
>> keymapping as desired (F5, here). It will smart-reformat the whole
>> body of your post. Try it...you'll like it. :)
>> (Including my comments, from said file, for information value)
>> " keybinding: body only formatting keybinding for normal mode for slrn - thanks
>> " Tim Hammerquist. return cursor to place it was at when insert mode last left
>> " note: `^ is my add
>> au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^-- $<CR>{gq`^
>> I'm not using it with this post, to keep command from wrapping.
> OK, added to ~/.gvimrc but just get system bell when I hit F5. I
> suspect that it is a path issue(?)
That's where my rc is.
You're in command mode for this, right?
It "smart wraps" everything in the body (not the sig) to your margin
line length settings, correctly handling known quote-indicators (i.e.,
it wraps old paragraphs while keeping their greater-thans correct).
> I'll play with it. Come back if you can confirm, tho'.
Dunno what's up. Yo! Other slrner-vimmers! Ideas?
Dr. Hammerquist -- you still out there? :)
--
Blinky - - - - - - - - - - - - - - - - - - - - - - - Linux RU 297263
Microsoft, 23 Oct: "As a result of challenges to our business model,
sales of our products may decline, we may have to reduce the prices
we charge for our products..." http://snipurl.com/open_source
Re: [slrn] ping: SINNER - long attrib lines
Author: DC
Date: Mon, 03 Nov 2003 22:57
Date: Mon, 03 Nov 2003 22:57
52 lines
3154 bytes
3154 bytes
On 3 Nov 2003 22:23:26 GMT, Blinky the Shark <no.spam@box.invalid> wrote:
> DC wrote:
>
>> On 3 Nov 2003 19:45:22 GMT, Blinky the Shark <no.spam@box.invalid>
>> wrote:
>
>>> Here ya go. Stick this in your rc for the editor, and change the
>>> keymapping as desired (F5, here). It will smart-reformat the whole
>>> body of your post. Try it...you'll like it. :)
>
>>> (Including my comments, from said file, for information value)
>
>>> " keybinding: body only formatting keybinding for normal mode for slrn - thanks
>>> " Tim Hammerquist. return cursor to place it was at when insert mode last left
>>> " note: `^ is my add
>>> au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^-- $<CR>{gq`^
>
>>> I'm not using it with this post, to keep command from wrapping.
>
>> OK, added to ~/.gvimrc but just get system bell when I hit F5. I
>> suspect that it is a path issue(?)
>
> That's where my rc is.
>
> You're in command mode for this, right?
Yup.
> It "smart wraps" everything in the body (not the sig) to your margin
> line length settings, correctly handling known quote-indicators (i.e.,
> it wraps old paragraphs while keeping their greater-thans correct).
Good. That's exactly what I want.
>> I'll play with it. Come back if you can confirm, tho'.
>
> Dunno what's up. Yo! Other slrner-vimmers! Ideas?
>
> Dr. Hammerquist -- you still out there? :)
Could you explain ~/.article and ~/.followup entries? I don't have those files.
Are they your tmp files? I just let slrn do the random name generation
thingy...
FTR, >20K unread in aolm }:O((( The move just killed me, there...
Have pity! }:O\
--
DC
Microsoft is not the answer, it is the question. The answer is NO.
Re: [slrn] ping: SINNER - long attrib lines
Author: Blinky the Shark
Date: Mon, 03 Nov 2003 23:17
Date: Mon, 03 Nov 2003 23:17
77 lines
4032 bytes
4032 bytes
DC wrote:
> On 3 Nov 2003 22:23:26 GMT, Blinky the Shark <no.spam@box.invalid>
> wrote:
>> DC wrote:
>>> On 3 Nov 2003 19:45:22 GMT, Blinky the Shark <no.spam@box.invalid>
>>> wrote:
>>>> Here ya go. Stick this in your rc for the editor, and change the
>>>> keymapping as desired (F5, here). It will smart-reformat the whole
>>>> body of your post. Try it...you'll like it. :)
>>>> (Including my comments, from said file, for information value)
>>>> " keybinding: body only formatting keybinding for normal mode for
>>>> slrn - thanks " Tim Hammerquist. return cursor to place it was at
>>>> when insert mode last left " note: `^ is my add au
>>>> BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^--
>>>> $<CR>{gq`^
>>>> I'm not using it with this post, to keep command from wrapping.
>>> OK, added to ~/.gvimrc but just get system bell when I hit F5. I
>>> suspect that it is a path issue(?)
>> That's where my rc is.
>> You're in command mode for this, right?
> Yup.
>> It "smart wraps" everything in the body (not the sig) to your margin
>> line length settings, correctly handling known quote-indicators
>> (i.e., it wraps old paragraphs while keeping their greater-thans
>> correct).
> Good. That's exactly what I want.
I knew that. ;)
>>> I'll play with it. Come back if you can confirm, tho'.
>> Dunno what's up. Yo! Other slrner-vimmers! Ideas?
>> Dr. Hammerquist -- you still out there? :)
> Could you explain ~/.article and ~/.followup entries? I don't have
> those files.
Those should be the names of the temp files you're editing in gvim, when
you make OP or a followup, respectively, from slrn. Limiting the macro
to those files keeps this keymapping from kicking in when you're editing
other stuff, where it would not be applicable (remember, it identifies
and skips the headers, and pulls up short of your valid sig). This is a
highly tuned formatting machine. :)
> Are they your tmp files? I just let slrn do the random name
> generation thingy...
Above. Slrn names them before passing them. And no, this doesn't
require any slrn setup, that I know of -- those should be the default
filenames.
IMO, this is a *must* for slrn-vimming. If nobody susses your problem,
here, it's *definitely* worth a dedicated OP. But let's give it a day,
and see if the slrn, alone, in the Subject header attracts an answer.
> FTR, >20K unread in aolm }:O((( The move just killed me, there...
> Have pity! }:O\
Kill, start afresh, carry on. :)
--
Blinky - - - - - - - - - - - - - - - - - - - - - - - Linux RU 297263
Microsoft, 23 Oct: "As a result of challenges to our business model,
sales of our products may decline, we may have to reduce the prices
we charge for our products..." http://snipurl.com/open_source
Re: [slrn] ping: SINNER - long attrib lines
Author: Steve W
Date: Tue, 04 Nov 2003 00:10
Date: Tue, 04 Nov 2003 00:10
85 lines
4093 bytes
4093 bytes
* Blinky the Shark <no.spam@box.invalid> 2003-11-03:
> DC wrote:
>> On 3 Nov 2003 22:23:26 GMT, Blinky the Shark <no.spam@box.invalid>
>> wrote:
>>> DC wrote:
>
>>>> On 3 Nov 2003 19:45:22 GMT, Blinky the Shark <no.spam@box.invalid>
>>>> wrote:
>
>>>>> Here ya go. Stick this in your rc for the editor, and change the
>>>>> keymapping as desired (F5, here). It will smart-reformat the whole
>>>>> body of your post. Try it...you'll like it. :)
>
>>>>> (Including my comments, from said file, for information value)
>
>>>>> " keybinding: body only formatting keybinding for normal mode for
>>>>> slrn - thanks " Tim Hammerquist. return cursor to place it was at
>>>>> when insert mode last left " note: `^ is my add au
>>>>> BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^--
>>>>> $<CR>{gq`^
>
>>>>> I'm not using it with this post, to keep command from wrapping.
>
>>>> OK, added to ~/.gvimrc but just get system bell when I hit F5. I
>>>> suspect that it is a path issue(?)
>
>>> That's where my rc is.
>
>>> You're in command mode for this, right?
>
>> Yup.
>
>>> It "smart wraps" everything in the body (not the sig) to your margin
>>> line length settings, correctly handling known quote-indicators
>>> (i.e., it wraps old paragraphs while keeping their greater-thans
>>> correct).
>
>> Good. That's exactly what I want.
>
> I knew that. ;)
>
>>>> I'll play with it. Come back if you can confirm, tho'.
>
>>> Dunno what's up. Yo! Other slrner-vimmers! Ideas?
>
>>> Dr. Hammerquist -- you still out there? :)
>
>> Could you explain ~/.article and ~/.followup entries? I don't have
>> those files.
I just use the:
map <F5> gg/^$<CR>V/^-- $<CR>{gq`^
part. That way it works from Mutt as well!
>
> Those should be the names of the temp files you're editing in gvim, when
> you make OP or a followup, respectively, from slrn. Limiting the macro
> to those files keeps this keymapping from kicking in when you're editing
> other stuff, where it would not be applicable (remember, it identifies
> and skips the headers, and pulls up short of your valid sig). This is a
> highly tuned formatting machine. :)
>
>> Are they your tmp files? I just let slrn do the random name
>> generation thingy...
>
> Above. Slrn names them before passing them. And no, this doesn't
> require any slrn setup, that I know of -- those should be the default
> filenames.
>
> IMO, this is a *must* for slrn-vimming. If nobody susses your problem,
> here, it's *definitely* worth a dedicated OP. But let's give it a day,
> and see if the slrn, alone, in the Subject header attracts an answer.
>
>> FTR, >20K unread in aolm }:O((( The move just killed me, there...
>> Have pity! }:O\
>
> Kill, start afresh, carry on. :)
>
--
Steve W
s (dot) wal (at) verizon (dot) net
Re: [slrn] ping: SINNER - long attrib lines
Author: Scott
Date: Tue, 04 Nov 2003 23:53
Date: Tue, 04 Nov 2003 23:53
19 lines
1860 bytes
1860 bytes
On Mon, Nov 03 2003, in news.software.readers, DC <dcmoose@myrealbox.com> wrote: > Could you explain ~/.article and ~/.followup entries? I don't > have those files. > > Are they your tmp files? I just let slrn do the random name > generation thingy... % Whether to put temporary files for postings, followups and replies % in the directory specified by the TMPDIR environment variable or % /tmp. %set use_tmpdir 0 If your slrnrc differs, that's the problem. Comment out what you currently have or set it to zero. Quick test this by posting or replying to a message and checking $HOME. One of those two files should show up there. Failing that (just guessing), perhaps you have an environment variable set.
Re: [slrn] ping: SINNER - long attrib lines
Author: DC
Date: Wed, 05 Nov 2003 16:07
Date: Wed, 05 Nov 2003 16:07
32 lines
2527 bytes
2527 bytes
On 4 Nov 2003 23:53:32 GMT, Scott <scott421@bellsouth.net> wrote: > On Mon, Nov 03 2003, in news.software.readers, > DC <dcmoose@myrealbox.com> wrote: > >> Could you explain ~/.article and ~/.followup entries? I don't >> have those files. >> >> Are they your tmp files? I just let slrn do the random name >> generation thingy... > > % Whether to put temporary files for postings, followups and replies > % in the directory specified by the TMPDIR environment variable or > % /tmp. > %set use_tmpdir 0 > > If your slrnrc differs, that's the problem. Comment out what you > currently have or set it to zero. Quick test this by posting or > replying to a message and checking $HOME. Bingo! Thanks for that. Now, when I press <F5>, this is what I get: http://dcmoose.fateback.com/screens/slrn1.png I'm not exactly sure *what* has been accomplished. Nothing gets wrapped. What am I missing, here? -- DC "Give a man a fish and you feed him for a day. Teach him to fish and you can sell him fishing gear. - RED GREEN
Re: [slrn] ping: SINNER - long attrib lines
Author: Blinky the Shark
Date: Wed, 05 Nov 2003 19:12
Date: Wed, 05 Nov 2003 19:12
41 lines
2930 bytes
2930 bytes
DC wrote: > On 4 Nov 2003 23:53:32 GMT, Scott <scott421@bellsouth.net> wrote: >> On Mon, Nov 03 2003, in news.software.readers, DC >> <dcmoose@myrealbox.com> wrote: >>> Could you explain ~/.article and ~/.followup entries? I don't have >>> those files. >>> Are they your tmp files? I just let slrn do the random name >>> generation thingy... >> % Whether to put temporary files for postings, followups and replies >> % in the directory specified by the TMPDIR environment variable or % >> /tmp. %set use_tmpdir 0 >> If your slrnrc differs, that's the problem. Comment out what you >> currently have or set it to zero. Quick test this by posting or >> replying to a message and checking $HOME. > Bingo! Thanks for that. > Now, when I press <F5>, this is what I get: > http://dcmoose.fateback.com/screens/slrn1.png > I'm not exactly sure *what* has been accomplished. Nothing gets > wrapped. What am I missing, here? It's gone into visual mode, and highlighted the right stuff -- it's just not done the wrap to that highlighted part, and done the cursor-return-to-where-you-were. (You can not only see the correct highlighting, but you can also see the last thing done, down on the command line -- the search for your sig delimiter as the end point of the highlighting.) Can you paste the line from the rc, here, and keep it from wrapping? -- Blinky - - - - - - - - - - - - - - - - - - - - - - - Linux RU 297263 Microsoft, 23 Oct: "As a result of challenges to our business model, sales of our products may decline, we may have to reduce the prices we charge for our products..." http://snipurl.com/open_source
Re: [slrn] ping: SINNER - long attrib lines
Author: DC
Date: Wed, 05 Nov 2003 19:40
Date: Wed, 05 Nov 2003 19:40
31 lines
2745 bytes
2745 bytes
On 5 Nov 2003 19:12:03 GMT, Blinky the Shark <no.spam@box.invalid> wrote:
> DC wrote:
>
>> Now, when I press <F5>, this is what I get:
>> http://dcmoose.fateback.com/screens/slrn1.png
>
>> I'm not exactly sure *what* has been accomplished. Nothing gets
>> wrapped. What am I missing, here?
>
> It's gone into visual mode, and highlighted the right stuff -- it's just
> not done the wrap to that highlighted part, and done the
> cursor-return-to-where-you-were. (You can not only see the correct
> highlighting, but you can also see the last thing done, down on the
> command line -- the search for your sig delimiter as the end point of
> the highlighting.)
>
> Can you paste the line from the rc, here, and keep it from wrapping?
Not sure which rc, so here are both:
.slrnrc
set editor_command "gvim -f +'/^$/ +1' +'colo elflord' +'set comments=nb:> ' +noh +'set tw=72' +%d '%s'"
.gvimrc
au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^-- $<CR>{gq`^
--
DC
"Give a man a fish and you feed him for a day. Teach him to fish and you
can sell him fishing gear. - RED GREEN
Re: [slrn] ping: SINNER - long attrib lines
Author: Blinky the Shark
Date: Wed, 05 Nov 2003 20:25
Date: Wed, 05 Nov 2003 20:25
47 lines
3144 bytes
3144 bytes
DC wrote:
> On 5 Nov 2003 19:12:03 GMT, Blinky the Shark <no.spam@box.invalid>
> wrote:
>> DC wrote:
>>> Now, when I press <F5>, this is what I get:
>>> http://dcmoose.fateback.com/screens/slrn1.png
>>> I'm not exactly sure *what* has been accomplished. Nothing gets
>>> wrapped. What am I missing, here?
>> It's gone into visual mode, and highlighted the right stuff -- it's
>> just not done the wrap to that highlighted part, and done the
>> cursor-return-to-where-you-were. (You can not only see the correct
>> highlighting, but you can also see the last thing done, down on the
>> command line -- the search for your sig delimiter as the end point of
>> the highlighting.)
>> Can you paste the line from the rc, here, and keep it from wrapping?
> Not sure which rc, so here are both:
My lazy. My bad.
> .slrnrc set editor_command "gvim -f +'/^$/ +1' +'colo elflord' +'set
> comments=nb:> ' +noh +'set tw=72' +%d '%s'"
> .gvimrc au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5>
> gg/^$<CR>V/^-- $<CR>{gq`^
Dead on.
I'm stumped. I don't know why it would just quit, midmacro.
Why don't you make a new thread of this, with Subject specificity, and
in addition to your explanation, link to that screen dump, include the
two entries, above.
Strongly consider crossposting it to comp.editors -- it's very well
vi-family populated. I'll see you when you come in. If you so
crosspost, include both [slrn] and [vim] flags in your Subject.
--
Blinky - - - - - - - - - - - - - - - - - - - - - - - Linux RU 297263
Microsoft, 23 Oct: "As a result of challenges to our business model,
sales of our products may decline, we may have to reduce the prices
we charge for our products..." http://snipurl.com/open_source
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