🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
14 messages
14 total messages Started by Dale Wed, 19 Nov 2014 19:33
configuration with slrn/vim
#258631
Author: Dale
Date: Wed, 19 Nov 2014 19:33
20 lines
1280 bytes
I am studying the documentation and searching google

I can get line wrap to 80 characters on things I cut and paste into
slrn. with

set editor_command "vim '+set tw=80' +%d '%s'

if I type, it wraps to 80 characters too, but when I send I have to
force send because it says a line is above 80 characters

when I read in slrn, the cut/past is wrapped, but the typing is not and
I have to press W, when I press W an extra space is on the beginning of
each line folliwng the first line

checked Thunderbird and google/groups and both seem to have both the
cut/paste and typed lines wrapped in their readers

-- 
(my whereabouts below)
http://www.dalekelly.org
Re: configuration with slrn/vim
#258633
Author: notbob
Date: Wed, 19 Nov 2014 20:04
13 lines
1299 bytes
On 2014-11-19, Dale <dale@dalekelly.org> wrote:

> set editor_command "vim '+set tw=80' +%d '%s'
>
> if I type, it wraps to 80 characters too, but when I send I have to
> force send because it says a line is above 80 characters

Try removing the "tw=80".  I do not have that in my set editor_command
line and my editor (emacs) wraps to 74 chars, which is the usenet
standard.  Maybe the setting is in yer vim config file, whatever that
may be.    

nb --vi, the root of all evil!  ;)
Re: configuration with slrn/vim
#258634
Author: andrew
Date: Wed, 19 Nov 2014 20:40
16 lines
1510 bytes
On 2014-11-19, Dale <dale@dalekelly.org> wrote:

> I can get line wrap to 80 characters on things I cut and paste into
> slrn. with
>
> set editor_command "vim '+set tw=80' +%d '%s'
>
> if I type, it wraps to 80 characters too, but when I send I have to
> force send because it says a line is above 80 characters

Seems odd, I use a similar line, (although I use tw=72 which might be a
better choice for you anyway), with no issues...

Andrew
-- 
Do you think that's air you're breathing?
Re: configuration with slrn/vim
#258635
Author: andrew
Date: Wed, 19 Nov 2014 20:43
21 lines
1726 bytes
On 2014-11-19, andrew <andrew@skamandros.invalid> wrote:
> On 2014-11-19, Dale <dale@dalekelly.org> wrote:
>
>> I can get line wrap to 80 characters on things I cut and paste into
>> slrn. with
>>
>> set editor_command "vim '+set tw=80' +%d '%s'
>>
>> if I type, it wraps to 80 characters too, but when I send I have to
>> force send because it says a line is above 80 characters
>
> Seems odd, I use a similar line, (although I use tw=72 which might be a
> better choice for you anyway), with no issues...

Mind you I have spotted a small typo in your setting, should be:

set editor_command "vim '+set tw=80' +%d '%s'"
                                             ^^
Andrew					     
-- 
Do you think that's air you're breathing?
Re: configuration with slrn/vim
#258636
Author: Dale
Date: Wed, 19 Nov 2014 20:58
28 lines
1736 bytes
On 2014-11-19, andrew <andrew@skamandros.invalid> wrote:
> On 2014-11-19, andrew <andrew@skamandros.invalid> wrote:
>> On 2014-11-19, Dale <dale@dalekelly.org> wrote:
>>
>>> I can get line wrap to 80 characters on things I cut and paste into
>>> slrn. with
>>>
>>> set editor_command "vim '+set tw=80' +%d '%s'
>>>
>>> if I type, it wraps to 80 characters too, but when I send I have to
>>> force send because it says a line is above 80 characters
>>
>> Seems odd, I use a similar line, (although I use tw=72 which might be a
>> better choice for you anyway), with no issues...
>
> Mind you I have spotted a small typo in your setting, should be:
>
> set editor_command "vim '+set tw=80' +%d '%s'"
>                                              ^^
> Andrew					     

added the finishing double quotes, changed 80 to 72
and still have to wrap the lines with W in slrn
when W wraps it still leaves a space in front of each line that is
wrapped, thanks though
-- 
(my whereabouts below)
http://www.dalekelly.org
Re: configuration with slrn/vim
#258639
Author: Eli the Bearded
Date: Wed, 19 Nov 2014 22:00
66 lines
3939 bytes
In news.software.readers, Dale  <dale@dalekelly.org> wrote:
> I can get line wrap to 80 characters on things I cut and paste into
> slrn. with
> 
> set editor_command "vim '+set tw=80' +%d '%s'

(note to readers: The missing quote issue has already been addressed
downthread)

> if I type, it wraps to 80 characters too, but when I send I have to
> force send because it says a line is above 80 characters

I'm not a slrn user, but I do use vim with my newsreader of choice.
Two things to note:

1) vim won't wrap lines that start out over the textwrap ("tw") limit,
so if you follow-up to a post with 79 character lines, and then those
get extended to 81 because of a leading "> ", you'll need to fix them on
your own somehow. (See below)

2) vim won't wrap lines longer than the textwrap limit if there is no
whitespace in the line to wrap. Typically I find that happens very
rarely unless you count web URLs pasted in.

My newsreader has a very predictable and reasonably unique naming scheme
for posts I am composing: "~/.article.PID". Instead of setting a command
line preference for how I want those articles to have a different vim
configuration, I use a line in my vimrc:

    " Set up macros for Pnews
    autocmd BufRead .article.* :so ~eli/.news_vimrc

(The " line is a comment and not required.)

My .news_vimrc has several map! commands to translate smart quotes into
old-fashioned ASCII, a few other commands helpful to me, plus one "set"
line for news article specific settings:

    map! ’ '
    map! ‘ '
    map! “ "
    map! ” "
    map! … ...
    " n-dash
    map! – --
    " m-dash
    map! — --
    " map function-5 to find non-tab, non-space to tilde (ie, non-ASCII)
    map <F5> /[^	 -~]<cr>
    map <F6> iContent-Type: text/plain; charset="UTF-8"<cr>MIME-Version: 1.0<cr><esc>
    map! <F6> Content-Type: text/plain; charset="UTF-8"<cr>MIME-Version: 1.0<cr>
    set ai sw=4 tw=72

The autoindent ("ai") with vim's default setting of the "comments" means
that ">" indented text can usually be safely reformatted with the vim's
built in text reformatter: "gq{motion}". See ":help gq" in vim. The most
frequent motion command I use when reformatting quoted text is "}",
which is "from here to next blank line". 

I think the reformat command may be of particular use to you, because
I'm guessing that it is existing long lines which are triggering your
over 80 columns problem.

Elijah
------
has a similar file for Rnmail's "reply by email temporary file" settings
Re: configuration with slrn/vim
#258640
Author: Mike Yetto
Date: Thu, 20 Nov 2014 03:51
25 lines
2368 bytes
While walking through the streets of Soho in the rain
notbob <notbob@nothome.com> wrote...
> On 2014-11-19, Dale <dale@dalekelly.org> wrote:

>> set editor_command "vim '+set tw=80' +%d '%s'
>>
>> if I type, it wraps to 80 characters too, but when I send I have to
>> force send because it says a line is above 80 characters

> Try removing the "tw=80".  I do not have that in my set editor_command
> line and my editor (emacs) wraps to 74 chars, which is the usenet
> standard.  Maybe the setting is in yer vim config file, whatever that
> may be.    

> nb --vi, the root of all evil!  ;)

A question was asked about vim and your answer was to "remove that
solution because I don't need it in emacs." 

Mike "thank you, just put it on that table by the door" Yetto
-- 
"Persecution is not an original feature in any religion; but it
is always the strongly marked feature of all religions
established by law."
 - Thomas Paine
Re: configuration with slrn/vim
#258642
Author: notbob
Date: Thu, 20 Nov 2014 17:51
11 lines
1308 bytes
On 2014-11-20, Mike Yetto <unet.lighthouse@xoxy.net> wrote:

> ....your answer was to "remove that solution because I don't need it
> in emacs."

You lie!  I know you think quotation marks solve everything, but I said no such
thing.  

> Mike "thank you, just put it on that table by the door" Yetto

not ...back into my killfile, dolt... bob
Re: configuration with slrn/vim
#258643
Author: Dale
Date: Thu, 20 Nov 2014 19:12
75 lines
3692 bytes
On 2014-11-19, Eli the Bearded <*@eli.users.panix.com> wrote:
> In news.software.readers, Dale  <dale@dalekelly.org> wrote:
>> I can get line wrap to 80 characters on things I cut and paste into
>> slrn. with
>> 
>> set editor_command "vim '+set tw=80' +%d '%s'
>
> (note to readers: The missing quote issue has already been addressed
> downthread)
>
>> if I type, it wraps to 80 characters too, but when I send I have to
>> force send because it says a line is above 80 characters
>
> I'm not a slrn user, but I do use vim with my newsreader of choice.
> Two things to note:
>
> 1) vim won't wrap lines that start out over the textwrap ("tw") limit,
> so if you follow-up to a post with 79 character lines, and then those
> get extended to 81 because of a leading "> ", you'll need to fix them on
> your own somehow. (See below)
>
> 2) vim won't wrap lines longer than the textwrap limit if there is no
> whitespace in the line to wrap. Typically I find that happens very
> rarely unless you count web URLs pasted in.
>
> My newsreader has a very predictable and reasonably unique naming scheme
> for posts I am composing: "~/.article.PID". Instead of setting a command
> line preference for how I want those articles to have a different vim
> configuration, I use a line in my vimrc:
>
>     " Set up macros for Pnews
>     autocmd BufRead .article.* :so ~eli/.news_vimrc
>
> (The " line is a comment and not required.)
>
> My .news_vimrc has several map! commands to translate smart quotes into
> old-fashioned ASCII, a few other commands helpful to me, plus one "set"
> line for news article specific settings:
>
>     map! ’ '
>     map! ‘ '
>     map! “ "
>     map! ” "
>     map! … ...
>     " n-dash
>     map! – --
>     " m-dash
>     map! — --
>     " map function-5 to find non-tab, non-space to tilde (ie, non-ASCII)
>     map <F5> /[^	 -~]<cr>
>     map <F6> iContent-Type: text/plain; charset="UTF-8"<cr>MIME-Version: 1.0<cr><esc>
>     map! <F6> Content-Type: text/plain; charset="UTF-8"<cr>MIME-Version: 1.0<cr>
>     set ai sw=4 tw=72
>
> The autoindent ("ai") with vim's default setting of the "comments" means
> that ">" indented text can usually be safely reformatted with the vim's
> built in text reformatter: "gq{motion}". See ":help gq" in vim. The most
> frequent motion command I use when reformatting quoted text is "}",
> which is "from here to next blank line". 
>
> I think the reformat command may be of particular use to you, because
> I'm guessing that it is existing long lines which are triggering your
> over 80 columns problem.
>
> Elijah
> ------
> has a similar file for Rnmail's "reply by email temporary file" settings

I don't hardly know what to say ELijah, thanks, it will take me awhile
to digest this, thanks again


-- 
(my whereabouts below)
http://www.dalekelly.org
Re: configuration with slrn/vim
#258644
Author: Mike Yetto
Date: Fri, 21 Nov 2014 00:03
27 lines
2531 bytes
While walking through the streets of Soho in the rain
notbob <notbob@nothome.com> wrote...
> On 2014-11-20, Mike Yetto <unet.lighthouse@xoxy.net> wrote:

>> ....your answer was to "remove that solution because I don't need it
>> in emacs."

> You lie!  I know you think quotation marks solve everything, but I said no such
> thing.  

I'm not surprised you don't understand what a paraphrase is.

>> Mike "thank you, just put it on that table by the door" Yetto

> not ...back into my killfile, dolt... bob

Then you won't be able to bitch about the answers I give to your
questions. Not that I would answer anymore of your questions.

Mike "not that you're reading this" Yetto
-- 
"One of the peculiar sins of the twentieth century which we've
developed to a very high level is the sin of credulity. It has
been said that when human beings stop believing in God they
believe in nothing. The truth is much worse: they believe in
anything."
 - Malcolm Muggeridge
Re: configuration with slrn/vim
#258645
Author: Adam H. Kerman
Date: Fri, 21 Nov 2014 02:12
23 lines
2186 bytes
Mike Yetto <unet.lighthouse@xoxy.net> wrote:
>While walking through the streets of Soho in the rain
>notbob <notbob@nothome.com> wrote...
>>On 2014-11-19, Dale <dale@dalekelly.org> wrote:

>>>set editor_command "vim '+set tw=80' +%d '%s'

>>>if I type, it wraps to 80 characters too, but when I send I have to
>>>force send because it says a line is above 80 characters

>>Try removing the "tw=80".  I do not have that in my set editor_command
>>line and my editor (emacs) wraps to 74 chars, which is the usenet
>>standard.  Maybe the setting is in yer vim config file, whatever that
>>may be.    

>>nb --vi, the root of all evil!  ;)

>A question was asked about vim and your answer was to "remove that
>solution because I don't need it in emacs." 

>Mike "thank you, just put it on that table by the door" Yetto

You have been seamused.
Re: configuration with slrn/vim
#258647
Author: Mike Yetto
Date: Fri, 21 Nov 2014 04:18
34 lines
2851 bytes
While walking through the streets of Soho in the rain
Adam H. Kerman <ahk@chinet.com> wrote...
> Mike Yetto <unet.lighthouse@xoxy.net> wrote:
>>While walking through the streets of Soho in the rain
>>notbob <notbob@nothome.com> wrote...
>>>On 2014-11-19, Dale <dale@dalekelly.org> wrote:

>>>>set editor_command "vim '+set tw=80' +%d '%s'

>>>>if I type, it wraps to 80 characters too, but when I send I have to
>>>>force send because it says a line is above 80 characters

>>>Try removing the "tw=80".  I do not have that in my set editor_command
>>>line and my editor (emacs) wraps to 74 chars, which is the usenet
>>>standard.  Maybe the setting is in yer vim config file, whatever that
>>>may be.    

>>>nb --vi, the root of all evil!  ;)

>>A question was asked about vim and your answer was to "remove that
>>solution because I don't need it in emacs." 

>>Mike "thank you, just put it on that table by the door" Yetto

> You have been seamused.

Could it really be true that every asshat I've encountered on Usenet
for the past several months is the same asshat?

Mike "if he's hogging all the stupid where do the rest get it?" Yetto
-- 
"We are trying to prove ourselves wrong as quickly as possible,
because only in that way can we find progress."
 - Richard Feynman
Re: configuration with slrn/vim
#258648
Author: Lewis
Date: Fri, 21 Nov 2014 15:22
9 lines
1701 bytes
Okay, so one time? In band camp? Mike Yetto <unet.lighthouse@xoxy.net> was all, like:
> Mike "not that you're reading this" Yetto

Oh, he's reading it.


-- 
The Auditors avoided death by never going so far as to get a life --The
Thief of Time
Re: configuration with slrn/vim
#258650
Author: Whiskers
Date: Fri, 21 Nov 2014 21:55
55 lines
3673 bytes
On 2014-11-19, Dale <dale@dalekelly.org> wrote:
> On 2014-11-19, andrew <andrew@skamandros.invalid> wrote:
>> On 2014-11-19, andrew <andrew@skamandros.invalid> wrote:
>>> On 2014-11-19, Dale <dale@dalekelly.org> wrote:
>>>
>>>> I can get line wrap to 80 characters on things I cut and paste into
>>>> slrn. with
>>>>
>>>> set editor_command "vim '+set tw=80' +%d '%s'
>>>>
>>>> if I type, it wraps to 80 characters too, but when I send I have to
>>>> force send because it says a line is above 80 characters
>>>
>>> Seems odd, I use a similar line, (although I use tw=72 which might be a
>>> better choice for you anyway), with no issues...
>>
>> Mind you I have spotted a small typo in your setting, should be:
>>
>> set editor_command "vim '+set tw=80' +%d '%s'"
>>                                              ^^
>> Andrew					     
>
> added the finishing double quotes, changed 80 to 72
> and still have to wrap the lines with W in slrn
> when W wraps it still leaves a space in front of each line that is
> wrapped, thanks though

I think you may be confusing what slrn does and what vim does.  

When slrn displays an article, it wraps the lines at whatever line
length was set by the author.  If the line is too long to wrap within
the width of your terminal, the w command tells slrn to wrap the long
line at the edge of the terminal - with the continuation of the line
indented.

When you have composed an article using your preferred editor, and
return control from the editor to slrn, and then key y to tell slrn to
submit the article, slrn will warn you if there is any line in the body
of your article longer than 80 characters - it also tells you the first
line in the article that is too long, and allows you to return to the
editor to change the long line(s), or you can force the article to be
sent as it is.

Your articles appear to have sensible line lengths so I don't know why
they look wrong to you, if that is what you mean.

Some articles do indeed have lines that are too long, it's a common
fault with articles sent using Google Groups for example.  The settings
you give your own editor have nothing to do with this, and have no
effect on it.  Slrn does not use your editor for displaying articles.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
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