🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by naughtypine Sun, 03 Apr 2011 02:49
[slrn] PING: gvim users -- need help with word wrap
#245236
Author: naughtypine
Date: Sun, 03 Apr 2011 02:49
23 lines
2141 bytes
Been away from slrn for a while and am trying to get things back the way
I had 'em.  Running into problems with word wrap...

In my slrnrc I have the following:

#v+
set editor_command "gvim -f +'/^$/ +1' +'set comments=nb:> ' +noh +'set tw=72' +%d '%s'"
#v-

I'm pretty sure that Blinky gave me this at one point.  IIRC, when gvim
was invoked to followup, it would automagically rewrap long lines in the
quoted message.

This no longer works and has me stumped.

I'm using VIM - Vi IMproved 7.2.

Thanks guys.

-- 
naughtypine

http://improve-usenet.org/
Re: [slrn] PING: gvim users -- need help with word wrap
#245241
Author: W. Citoan
Date: Sun, 03 Apr 2011 12:47
29 lines
2341 bytes
naughtypine wrote:
>  Been away from slrn for a while and am trying to get things back the way
>  I had 'em.  Running into problems with word wrap...
> 
>  In my slrnrc I have the following:
> 
>  #v+
>  set editor_command "gvim -f +'/^$/ +1' +'set comments=nb:> ' +noh +'set tw=72' +%d '%s'"
>  #v-
> 
>  I'm pretty sure that Blinky gave me this at one point.  IIRC, when gvim
>  was invoked to followup, it would automagically rewrap long lines in the
>  quoted message.
> 
>  This no longer works and has me stumped.

In addition to the command line arguments, gvim is also controlled by
the .vimrc file.  If that was your previous editor_command, than your
.vimrc has changed.

Try the following which adds autowrap options:
#v+
set editor_command "gvim -f +'/^$/ +1' +'set formatoptions=tcq' +'set comments=nb:> ' +noh +'set tw=72' +%d '%s'"
#v-

- W. Citoan
-- 
The best companions are the best books.
-- [Lord] Chesterfield
Re: [slrn] PING: gvim users -- need help with word wrap
#245242
Author: Mike Yetto
Date: Sun, 03 Apr 2011 13:18
52 lines
3207 bytes
naughtypine <this.email@address.is.INVALID> writes and having writ moves on.
>Been away from slrn for a while and am trying to get things back the way
>I had 'em.  Running into problems with word wrap...

>In my slrnrc I have the following:

>#v+
>set editor_command "gvim -f +'/^$/ +1' +'set comments=nb:> ' +noh +'set tw=72' +%d '%s'"
>#v-

>I'm pretty sure that Blinky gave me this at one point.  IIRC, when gvim
>was invoked to followup, it would automagically rewrap long lines in the
>quoted message.

In vim place the pointer somewhere in the paragraph you want to
reformat and press _<esc>gqap_ which will handle the quote marks
quite nicely.  You might want to add a blank line where you want
the paragraph to end as it might get carried away.

This appeared here last August and may help.
#v+
W. Citoan wrote:
> I have the following two maps defined in my vimrc:
>
>   map <F1> <Esc>gqap                       " reformat paragraph
>   map <F2> <Esc>gg/^$<CR>V/^-- $<CR>{gq`^  " reformat message
>
> F1 fixes a single paragraph and F2 everything between the first blank
> line and the signature block.  As in editing a message I will sometimes
> change the line wraps, I find it easier to just hit a key when I need
> to.
+v-

This was added to that conversation Bastian Erdnuess.
#v+
I didn't give it a test, but something like

  set editor "vim '%s' +':norm Ggqap' +%c"

in slrnrc could help.
#v-

You'll still want to use "set tw=72" or to taste and definitely
keep "-f +'/^$/ +1'" to start after the first blank line.

I don't know what the "set comments..." does, so play with that
and let us know how it goes.

Mike "looks like I have another FM to R" Yetto
-- 
In theory, theory and practice are the same.
In practice they are not.
Re: [slrn] PING: gvim users -- need help with word wrap
#245246
Author: mechanic
Date: Sun, 03 Apr 2011 13:36
13 lines
1477 bytes
On Sun, 3 Apr 2011 12:47:23 +0000 (UTC), W. Citoan wrote:

> set editor_command "gvim...

Why not just run vim in the console you run slrn from? Why use gvim?

And vimrc files are easy to set up (if you insist on gvim use
gvimrc):

http://vim.wikia.com/wiki/Open_vimrc_file

-- 
mechanic
Re: [slrn] PING: gvim users -- need help with word wrap
#245248
Author: W. Citoan
Date: Sun, 03 Apr 2011 14:13
18 lines
2034 bytes
mechanic wrote:
>  On Sun, 3 Apr 2011 12:47:23 +0000 (UTC), W. Citoan wrote:
> 
> > set editor_command "gvim...
> 
>  Why not just run vim in the console you run slrn from? Why use gvim?
> 
>  And vimrc files are easy to set up (if you insist on gvim use
>  gvimrc):

gvim will use the vimrc as well.  The gvimrc would only be needed if you
want gvim to act differently then vim (and the limitations on using the
gui_running check matter to you).

- W. Citoan
-- 
The best companions are the best books.
-- [Lord] Chesterfield
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