🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
70 messages
70 total messages Page 1 of 2 Started by Steve Sat, 15 Nov 2003 02:52
Page 1 of 2 • 70 total messages
[slrn] using vim
#137521
Author: Steve
Date: Sat, 15 Nov 2003 02:52
8 lines
1255 bytes
Howdy:

How does one set up vim in my 'slrnrc' so that the cursor/prompt is
inserted at a new line, below all the quoted text?

What I have in my slrnrc is: "vim -f '+set tw=78' +%d '%s'".

Thanks.
Re: [slrn] using vim
#137526
Author: Matt
Date: Sat, 15 Nov 2003 03:51
19 lines
1833 bytes
On Fri, 14 Nov 2003 21:52:50 -0500,
Steve <"Steve.D. Allen"@sweetpig.dyndns.org> wrote:

> Howdy:

Hi,

> How does one set up vim in my 'slrnrc' so that the cursor/prompt is
> inserted at a new line, below all the quoted text?

> What I have in my slrnrc is: "vim -f '+set tw=78' +%d '%s'".

Try to append "+$".
ie. "vim -f '+set tw=78 +$'"

-- 
 PL> J'ai eu cette idée sans rien lire sur le sujet
 Rassurez-vous, ça se voit.
 -+-DP in crypto-GNU : illettré neuneu l'heureux -+-
Re: [slrn] using vim
#137527
Author: Steve
Date: Sat, 15 Nov 2003 05:07
19 lines
1709 bytes
On 15 Nov 2003 03:51:00 GMT, Matt in news.software.readers wrote:
> On Fri, 14 Nov 2003 21:52:50 -0500,
> Steve <"Steve.D. Allen"@sweetpig.dyndns.org> wrote:
> 
>> Howdy:
> 
> Hi,
> 
>> How does one set up vim in my 'slrnrc' so that the cursor/prompt is
>> inserted at a new line, below all the quoted text?
> 
>> What I have in my slrnrc is: "vim -f '+set tw=78' +%d '%s'".
> 
> Try to append "+$".
> ie. "vim -f '+set tw=78 +$'"

Hi Matt,

I'm getting 'Unknown option: +$'. Any Suggestions?
Re: [slrn] using vim
#137529
Author: Florian Rehnisch
Date: Sat, 15 Nov 2003 06:07
22 lines
2085 bytes
o Steve <"Steve.D. Allen"@sweetpig.dyndns.org>:
> On 15 Nov 2003 03:51:00 GMT, Matt in news.software.readers wrote:
> > Steve <"Steve.D. Allen"@sweetpig.dyndns.org> wrote:

>>> How does one set up vim in my 'slrnrc' so that the cursor/prompt is
>>> inserted at a new line, below all the quoted text?

>>> What I have in my slrnrc is: "vim -f '+set tw=78' +%d '%s'".

>> Try to append "+$".
>> ie. "vim -f '+set tw=78 +$'"

> I'm getting 'Unknown option: +$'. Any Suggestions?

No dollar mark after the plus; »vim + foo« opens foo and places
cursor on the last line.

 flori
-- 
$ grep editor .tin/tinrc
start_editor_offset=OFF
default_editor_format=vim %F
Re: [slrn] using vim
#137531
Author: Tobias Mummert
Date: Sat, 15 Nov 2003 08:42
24 lines
1857 bytes
Hi Steve,

* Steve [2003-11-15 02:52 GMT] wrote:

> How does one set up vim in my 'slrnrc' so that the cursor/prompt is
> inserted at a new line, below all the quoted text?

this is my configuration:

,----[ .slrnrc ]
| set editor_command "vim %s +%d -c '+/^$/+'"
`----

,----[ .vimrc ]
| au BufNewFile,BufRead /tmp/SLRN[0-9A-Z.]* so ~/.vim/vim.news
`----

In '~/.vim/vim.news' you can set tw=78.

Best Regards,
Tobias
-- 
hundred-and-one symptoms of being an internet addict:
203. You're an active member of more than 20 newsgroups.
Re: [slrn] using vim
#137553
Author: Matt
Date: Sat, 15 Nov 2003 18:16
19 lines
2009 bytes
On Sat, 15 Nov 2003 00:07:52 -0500,
Steve <"Steve.D. Allen"@sweetpig.dyndns.org> wrote:

> Hi Matt,

Hi Steve,

> I'm getting 'Unknown option: +$'. Any Suggestions?

Hmm weird, it works here (vim version 6.2 with tin-1.6.2)
Then try "+G" to place the cursor on the last line of the file., or like 
Florian said, just use a "+".

hth
-- 
 FYLG> Tiens, vlà une URL qui va bien :
 FYLG> ftp://127.0.0.1/WaReZ/NiouZeS/WinDoZe/NeWSMoNGeR/SuPeR
 c'est gentil sauf que l'adresse ne fonctionne pas sa me fais une erreur
 -+- Furtif in Guide du Neuneu Usenet : <MODE CERVEAU OFF> -+-
Re: [slrn] using vim
#137558
Author: Steve
Date: Sat, 15 Nov 2003 20:47
14 lines
1737 bytes
On 15 Nov 2003 06:07:40 GMT, Florian Rehnisch in news.software.readers wrote:
> o Steve <"Steve.D. Allen"@sweetpig.dyndns.org>:

Hi Flori,

>> I'm getting 'Unknown option: +$'. Any Suggestions?
> 
> No dollar mark after the plus; »vim + foo« opens foo and places
> cursor on the last line.
> 
>  flori

Thanks -- this puts the cursor on the last line, however I wanted a
paragraph break, then insert prompt on a new line.
Re: [slrn] using vim
#137559
Author: Steve
Date: Sat, 15 Nov 2003 20:53
26 lines
1804 bytes
On Sat, 15 Nov 2003 09:42:50 +0100, Tobias Mummert in news.software.readers wrote:

Hi Tobias,

> * Steve [2003-11-15 02:52 GMT] wrote:
> 
>> How does one set up vim in my 'slrnrc' so that the cursor/prompt is
>> inserted at a new line, below all the quoted text?
> 
> this is my configuration:
> 
> ,----[ .slrnrc ]
>| set editor_command "vim %s +%d -c '+/^$/+'"
> `----
> 
> ,----[ .vimrc ]
>| au BufNewFile,BufRead /tmp/SLRN[0-9A-Z.]* so ~/.vim/vim.news
> `----
> 
> In '~/.vim/vim.news' you can set tw=78.
> 
> Best Regards,
> Tobias

Interesting -- I'll try this. Does it give one a newline after the
quoted text?
Re: [slrn] using vim
#137560
Author: Steve
Date: Sat, 15 Nov 2003 20:57
18 lines
1853 bytes
On 15 Nov 2003 18:16:37 GMT, Matt in news.software.readers wrote:
> On Sat, 15 Nov 2003 00:07:52 -0500,
> Steve <"Steve.D. Allen"@sweetpig.dyndns.org> wrote:
 
>> I'm getting 'Unknown option: +$'. Any Suggestions?
> 
> Hmm weird, it works here (vim version 6.2 with tin-1.6.2)
> Then try "+G" to place the cursor on the last line of the file., or like 
> Florian said, just use a "+".

Hi Matt,

Thanks for your assistance. I'll certainly give it a shot, (I mean, one can
always remove it, if it doesn't work) :) Will this give me a <br> newline? I
guess there is one way to find out... 

Cheers.
Re: [slrn] using vim
#137567
Author: Blinky the Shark
Date: Sun, 16 Nov 2003 00:51
37 lines
2061 bytes
Steve wrote:
> On Sat, 15 Nov 2003 09:42:50 +0100, Tobias Mummert in news.software.readers wrote:

> Hi Tobias,

>> * Steve [2003-11-15 02:52 GMT] wrote:

>>> How does one set up vim in my 'slrnrc' so that the cursor/prompt is
>>> inserted at a new line, below all the quoted text?

>> this is my configuration:

>> ,----[ .slrnrc ]
>>| set editor_command "vim %s +%d -c '+/^$/+'"
>> `----

>> ,----[ .vimrc ]
>>| au BufNewFile,BufRead /tmp/SLRN[0-9A-Z.]* so ~/.vim/vim.news
>> `----

>> In '~/.vim/vim.news' you can set tw=78.

>> Best Regards,
>> Tobias

> Interesting -- I'll try this. Does it give one a newline after the
> quoted text?

If you're willing to use .vimrc (I thought you specified that you wanted
a .slrnrc tweak in your original post), *AND* if you'll settle for a
shortcut (replace F9 key with your own choice):

au BufNewFile,BufRead ~/.followup :nmap <F9> GA<cr><cr>

-- 
Blinky - - - - - - - - - - - - - - - - - - - - - - - Linux RU 297263
<considering a new sig>
Re: [slrn] using vim
#137573
Author: Steve
Date: Sun, 16 Nov 2003 02:40
15 lines
1795 bytes
On 16 Nov 2003 00:51:19 GMT, Blinky the Shark in news.software.readers wrote:
> Steve wrote:

>> Interesting -- I'll try this. Does it give one a newline after the
>> quoted text?
> 
> If you're willing to use .vimrc (I thought you specified that you wanted
> a .slrnrc tweak in your original post), *AND* if you'll settle for a
> shortcut (replace F9 key with your own choice):

Sure I'm willing. :)

> au BufNewFile,BufRead ~/.followup :nmap <F9> GA<cr><cr>

Sweet -- man this is a *helpful* group of slrn/tin afficionodos.
Re: [slrn] using vim
#137578
Author: Blinky the Shark
Date: Sun, 16 Nov 2003 03:37
29 lines
2239 bytes
Steve wrote:
> On 16 Nov 2003 00:51:19 GMT, Blinky the Shark in news.software.readers
> wrote:
>> Steve wrote:

>>> Interesting -- I'll try this. Does it give one a newline after the
>>> quoted text?

>> If you're willing to use .vimrc (I thought you specified that you
>> wanted a .slrnrc tweak in your original post), *AND* if you'll settle
>> for a shortcut (replace F9 key with your own choice):

> Sure I'm willing. :)

>> au BufNewFile,BufRead ~/.followup :nmap <F9> GA<cr><cr>

> Sweet -- man this is a *helpful* group of slrn/tin afficionodos.

I tried to get that it to work when ever .followup is opened, without a
keystroke, but I seem to be missing some basics, here.  Maybe someone
can tweak it in that direction.  If so, I'll see how it's done (I have
other stuff that runs at file opening, but I couldn't translate this to
the form of those autocommands) and you will end up with something that
doesn't even require that keystroke -- which is, I think, what you
actually requested.  :)

-- 
Blinky - - - - - - - - - - - - - - - - - - - - - - - Linux RU 297263
<considering a new sig>
Re: [slrn] using vim
#137588
Author: Steve
Date: Sun, 16 Nov 2003 05:20
20 lines
2214 bytes
On 16 Nov 2003 03:37:25 GMT, Blinky the Shark in news.software.readers wrote:
> Steve wrote:
>> On 16 Nov 2003 00:51:19 GMT, Blinky the Shark in news.software.readers
>> wrote:

>>> au BufNewFile,BufRead ~/.followup :nmap <F9> GA<cr><cr>
> 
>> Sweet -- man this is a *helpful* group of slrn/tin afficionodos.
> 
> I tried to get that it to work when ever .followup is opened, without a
> keystroke, but I seem to be missing some basics, here.  Maybe someone
> can tweak it in that direction.  If so, I'll see how it's done (I have
> other stuff that runs at file opening, but I couldn't translate this to
> the form of those autocommands) and you will end up with something that
> doesn't even require that keystroke -- which is, I think, what you
> actually requested.  :)

Well, it's not too difficult to use F9. BTW, just noticed that you have
some method of removing quote lines from empty lines. How did you do
that?
Re: [slrn] using vim
#137591
Author: Blinky the Shark
Date: Sun, 16 Nov 2003 06:26
37 lines
2595 bytes
Steve wrote:
> On 16 Nov 2003 03:37:25 GMT, Blinky the Shark in news.software.readers wrote:
>> Steve wrote:
>>> On 16 Nov 2003 00:51:19 GMT, Blinky the Shark in news.software.readers
>>> wrote:

>>>> au BufNewFile,BufRead ~/.followup :nmap <F9> GA<cr><cr>

>>> Sweet -- man this is a *helpful* group of slrn/tin afficionodos.

>> I tried to get that it to work when ever .followup is opened, without a
>> keystroke, but I seem to be missing some basics, here.  Maybe someone
>> can tweak it in that direction.  If so, I'll see how it's done (I have
>> other stuff that runs at file opening, but I couldn't translate this to
>> the form of those autocommands) and you will end up with something that
>> doesn't even require that keystroke -- which is, I think, what you
>> actually requested.  :)

> Well, it's not too difficult to use F9. BTW, just noticed that you have
> some method of removing quote lines from empty lines. How did you do
> that?

Good eye.

After years of doing it by hand, with other news clients, I was working
up something to do that, when lo!  Such a thing appeared in in this very
group.

>From my .gvimrc:

" delete quote indicators on empty lines
" from w.citoan in n.s.r:
au BufRead ~/.followup :% s/^>[ >]*$//

-- 
Blinky - - - - - - - - - - - - - - - - - - - - - - - Linux RU 297263
<considering a new sig>
Re: [slrn] using vim
#137592
Author: Steve
Date: Sun, 16 Nov 2003 08:07
18 lines
1975 bytes
On 16 Nov 2003 06:26:11 GMT, Blinky the Shark in news.software.readers wrote:
> Steve wrote:

>> Well, it's not too difficult to use F9. BTW, just noticed that you have
>> some method of removing quote lines from empty lines. How did you do
>> that?

> After years of doing it by hand, with other news clients, I was working
> up something to do that, when lo!  Such a thing appeared in in this very
> group.

> From my .gvimrc:

> " delete quote indicators on empty lines
> " from w.citoan in n.s.r:
> au BufRead ~/.followup :% s/^>[ >]*$//

Thanks, it's working. :)
Re: [slrn] using vim
#137609
Author: Mike Vanecek
Date: Sun, 16 Nov 2003 20:49
23 lines
1822 bytes
On 16 Nov 2003 06:26:11 GMT, Blinky the Shark wrote:
> After years of doing it by hand, with other news clients, I was working
> up something to do that, when lo!  Such a thing appeared in in this very
> group.

> From my .gvimrc:

> " delete quote indicators on empty lines
> " from w.citoan in n.s.r:
> au BufRead ~/.followup :% s/^>[ >]*$//

I put that in my .vimrc. However, when I do a followup, I get the
following prompt:

"~/.followup" 84L, 2780C
26 substitutions on 26 lines
Hit ENTER or type command to continue

Anyway of tweaking it so one does not have to confirm the substitutions?

-- 
  Thanks, Mike.
Re: [slrn] using vim
#137610
Author: Mike Vanecek
Date: Sun, 16 Nov 2003 20:49
35 lines
1733 bytes
On Sat, 15 Nov 2003 09:42:50 +0100, Tobias Mummert wrote:
> Hi Steve,

> * Steve [2003-11-15 02:52 GMT] wrote:

>> How does one set up vim in my 'slrnrc' so that the cursor/prompt is
>> inserted at a new line, below all the quoted text?

> this is my configuration:

> ,----[ .slrnrc ]
>| set editor_command "vim %s +%d -c '+/^$/+'"
> `----

> ,----[ .vimrc ]
>| au BufNewFile,BufRead /tmp/SLRN[0-9A-Z.]* so ~/.vim/vim.news
> `----

> In '~/.vim/vim.news' you can set tw=78.

Is that the only thing that is in vim.news; i.e., set tw=78 ?

Will the below work with the above?

> " delete quote indicators on empty lines
> " from w.citoan in n.s.r:
> au BufRead ~/.followup :% s/^>[ >]*$//

or does it need to be modified? If so, how?



-- 
  Thanks, Mike.
Re: [slrn] using vim
#137615
Author: Blinky the Shark
Date: Sun, 16 Nov 2003 22:18
26 lines
2106 bytes
Mike Vanecek wrote:
> On 16 Nov 2003 06:26:11 GMT, Blinky the Shark wrote:
>> After years of doing it by hand, with other news clients, I was working
>> up something to do that, when lo!  Such a thing appeared in in this very
>> group.

>> From my .gvimrc:

>> " delete quote indicators on empty lines
>> " from w.citoan in n.s.r:
>> au BufRead ~/.followup :% s/^>[ >]*$//

> I put that in my .vimrc. However, when I do a followup, I get the
> following prompt:

> "~/.followup" 84L, 2780C
> 26 substitutions on 26 lines
> Hit ENTER or type command to continue

> Anyway of tweaking it so one does not have to confirm the substitutions?

I dunno, Mike.  (I don't get that.)

-- 
Blinky - - - - - - - - - - - - - - - - - - - - - - - Linux RU 297263
<considering a new sig>
Re: [slrn] using vim
#137617
Author: Sven Guckes
Date: Sun, 16 Nov 2003 22:29
21 lines
1870 bytes
* Mike Vanecek <MikeV99@privacy.net>:
> On 16 Nov 2003 06:26:11 GMT, Blinky the Shark wrote:
>> " delete quote indicators on empty lines
>> " from w.citoan in n.s.r:
>> au BufRead ~/.followup :% s/^>[ >]*$//
>
> I put that in my .vimrc. However, when
> I do a followup, I get the following prompt:
>
>   "~/.followup" 84L, 2780C
>   26 substitutions on 26 lines
>   Hit ENTER or type command to continue
>
> Anyway of tweaking it so one does not
> have to confirm the substitutions?

   :set cmdheight=2

-> :help 'ch'

Sven
Re: [slrn] using vim
#137621
Author: Steve
Date: Sun, 16 Nov 2003 23:11
28 lines
2275 bytes
On 16 Nov 2003 22:29:38 GMT, Sven Guckes in news.software.readers wrote:
> * Mike Vanecek <MikeV99@privacy.net>:
>> On 16 Nov 2003 06:26:11 GMT, Blinky the Shark wrote:
>>> " delete quote indicators on empty lines
>>> " from w.citoan in n.s.r:
>>> au BufRead ~/.followup :% s/^>[ >]*$//

>> I put that in my .vimrc. However, when
>> I do a followup, I get the following prompt:

>>   "~/.followup" 84L, 2780C
>>   26 substitutions on 26 lines
>>   Hit ENTER or type command to continue

>> Anyway of tweaking it so one does not
>> have to confirm the substitutions?

>    :set cmdheight=2

> -> :help 'ch'

> Sven

Sven, not the one whom asked, but I had this minor issue as well.
Thanks for the tweak.

BTW, what does the 'ch' stand for in the help command? I'm pretty much
a Vim illiterate, as I use it with slrn only.
Re: [slrn] using vim
#137624
Author: Florian Rehnisch
Date: Mon, 17 Nov 2003 02:30
21 lines
2275 bytes
o Steve <"Steve.D. Allen"@sweetpig.dyndns.org>:
> On 16 Nov 2003 22:29:38 GMT, Sven Guckes in news.software.readers wrote:

>>    :set cmdheight=2
>> -> :help 'ch'

> BTW, what does the 'ch' stand for in the help command? I'm pretty much
> a Vim illiterate, as I use it with slrn only.

Hmm, did you look it up. ;-)

'ch' is a shorthand for 'cmdheight'.  Like 'tw' for 'textwidth',
and so on.  Abbrevations are great: less typing, smaller dotfiles,
more time for answering newbie questions.

| Message-ID: <g609pb.suf.ln@127.0.0.1>
                             ^^^^^^^^^
BTW: Bad idea.  Don't use localhost IP, use an FQDN instead,
e.g. mid.sweetpig.dyndns.org

 flori
Re: [slrn] using vim
#137626
Author: Steve
Date: Mon, 17 Nov 2003 04:06
29 lines
2575 bytes
On 17 Nov 2003 02:30:47 GMT, Florian Rehnisch in news.software.readers wrote:
> o Steve <"Steve.D. Allen"@sweetpig.dyndns.org>:
>> On 16 Nov 2003 22:29:38 GMT, Sven Guckes in news.software.readers wrote:

>>>    :set cmdheight=2
>>> -> :help 'ch'

>> BTW, what does the 'ch' stand for in the help command? I'm pretty much
>> a Vim illiterate, as I use it with slrn only.

> Hmm, did you look it up. ;-)

:)

> 'ch' is a shorthand for 'cmdheight'.  Like 'tw' for 'textwidth',
> and so on.  Abbrevations are great: less typing, smaller dotfiles,
> more time for answering newbie questions.

Ah OK, I for one, am happy you & others have free'er time. When I'm
finished saving the world, I'll spend some time learning Vim, or...
perhaps Emacs. :P

>| Message-ID: <g609pb.suf.ln@127.0.0.1>
>                              ^^^^^^^^^
> BTW: Bad idea.  Don't use localhost IP, use an FQDN instead,
> e.g. mid.sweetpig.dyndns.org

Oie vay -- I'm using a FQDN, I don't think Debian configured Leafnode to
use it... I guess I could let slrn set the message header. ;)
Re: [slrn] using vim
#137629
Author: Blinky the Shark
Date: Mon, 17 Nov 2003 05:02
19 lines
1983 bytes
Florian Rehnisch wrote:
> o Steve <"Steve.D. Allen"@sweetpig.dyndns.org>:
>> On 16 Nov 2003 22:29:38 GMT, Sven Guckes in news.software.readers wrote:

>>>    :set cmdheight=2
>>> -> :help 'ch'

>> BTW, what does the 'ch' stand for in the help command? I'm pretty much
>> a Vim illiterate, as I use it with slrn only.

> Hmm, did you look it up. ;-)


Damn!  I can *never* remember Esc-? -- I *always* have to look it up,
before I can read a spoiler.  :)

-- 
Blinky - - - - - - - - - - - - - - - - - - - - - - - Linux RU 297263
<considering a new sig>
Re: [slrn] using vim
#137632
Author: Florian Rehnisch
Date: Mon, 17 Nov 2003 07:54
22 lines
2511 bytes
o Steve <"Steve.D. Allen"@sweetpig.dyndns.org>:

> Ah OK, I for one, am happy you & others have free'er time. When I'm
> finished saving the world, I'll spend some time learning Vim, or...
> perhaps Emacs. :P

Doh, seems to me like I will never get that Emacs stuff in my
head.  My appreciation to those who know both.  So, learn Emacs.

> Oie vay -- I'm using a FQDN, I don't think Debian configured Leafnode to
> use it... I guess I could let slrn set the message header. ;)

Well, I have my MIDs inserted by vim:

,--{ ~/.vimrc }--
| "Add a Message-ID to posts from tin (thanks to Sven Guckes):
| au BufNewFile,BufRead ~/.article*,~/.letter*,~/,followup* let @"="Message-ID: <".strftime("%y-%m-%d$%H.%M.%S%Z")."@FQDN.invalid>\n"|exe 'norm 1G}""P'
`------

Sorry for that long line, I don't know shorter, yet.

 flori, now I'll go and save the world...
Re: [slrn] using vim
#137641
Author: Tobias Mummert
Date: Mon, 17 Nov 2003 11:10
31 lines
2137 bytes
Hi Mike!

* Mike Vanecek [2003-11-16 20:49 GMT] wrote:

>> ,----[ .vimrc ]
>>| au BufNewFile,BufRead /tmp/SLRN[0-9A-Z.]* so ~/.vim/vim.news
>> `----
>
>> In '~/.vim/vim.news' you can set tw=78.
>
> Is that the only thing that is in vim.news; i.e., set tw=78 ?

Of course not, you can configure 'vim.news' according to your needs,
i.e. mapping, abbreviations or your own color scheme.

> Will the below work with the above?
>
>> " delete quote indicators on empty lines
>> " from w.citoan in n.s.r:
>> au BufRead ~/.followup :% s/^>[ >]*$//

Why don't you try it? ;-)

I haven't tested this command, but I think you should replace
'"/.followup' with the appropriate location of your system.

Best Regards,
Tobias
-- 
BOFH excuse #258:
That's easy to fix, but I can't be bothered.
Re: [slrn] using vim
#137644
Author: SINNER
Date: Mon, 17 Nov 2003 13:09
31 lines
2785 bytes
* Blinky the Shark Wrote in news.software.readers, on 16 Nov 2003 22:18:19 GMT:
> Mike Vanecek wrote:
>> On 16 Nov 2003 06:26:11 GMT, Blinky the Shark wrote:
>>> After years of doing it by hand, with other news clients, I was working
>>> up something to do that, when lo!  Such a thing appeared in in this very
>>> group.

>>> From my .gvimrc:

>>> " delete quote indicators on empty lines
>>> " from w.citoan in n.s.r:
>>> au BufRead ~/.followup :% s/^>[ >]*$//

>> I put that in my .vimrc. However, when I do a followup, I get the
>> following prompt:

>> "~/.followup" 84L, 2780C
>> 26 substitutions on 26 lines
>> Hit ENTER or type command to continue

>> Anyway of tweaking it so one does not have to confirm the substitutions?

> I dunno, Mike.  (I don't get that.)

So when you hit F you dont get a confirmation screen prior to seeing the
post? Odd as i use your little toy as well and have always had that.

-- 
David                    | AGM Favorite Games - http://tinyurl.com/loec 
"I only touch base with reality on an as-needed basis!"
		-- Royal Floyd Mengot (Klaus)
Re: [slrn] using vim
#137645
Author: SINNER
Date: Mon, 17 Nov 2003 13:29
22 lines
2469 bytes
* Blinky the Shark Wrote in news.software.readers, on 17 Nov 2003 05:02:50 GMT:
> Florian Rehnisch wrote:
>> o Steve <"Steve.D. Allen"@sweetpig.dyndns.org>:
>>> On 16 Nov 2003 22:29:38 GMT, Sven Guckes in news.software.readers wrote:

>>>>    :set cmdheight=2
>>>> -> :help 'ch'

>>> BTW, what does the 'ch' stand for in the help command? I'm pretty much
>>> a Vim illiterate, as I use it with slrn only.

>> Hmm, did you look it up. ;-)
> 

> Damn!  I can *never* remember Esc-? -- I *always* have to look it up,
> before I can read a spoiler.  :)

<AOL>me too!</AOL>

-- 
David                    | AGM Favorite Games - http://tinyurl.com/loec 
NT (as in Windows NT) is short for "No Thanks".
Re: [slrn] using vim
#137660
Author: Andreas Mitsis
Date: Mon, 17 Nov 2003 17:04
18 lines
1656 bytes
On 16 Nov 2003 06:26:11 GMT, "Blinky the Shark" wrote:

> From my .gvimrc:
> 
> " delete quote indicators on empty lines
> " from w.citoan in n.s.r:
> au BufRead ~/.followup :% s/^>[ >]*$//

Try this in .slrnrc

set smart_quote 2  

regards,
andreas
-- 
43rd Law of Computing:
        Anything that can go wr
fortune: Segmentation violation -- Core dumped
Re: [slrn] using vim
#137661
Author: Blinky the Shark
Date: Mon, 17 Nov 2003 19:45
36 lines
2701 bytes
SINNER wrote:
> * Blinky the Shark Wrote in news.software.readers, on 16 Nov 2003 22:18:19 GMT:
>> Mike Vanecek wrote:
>>> On 16 Nov 2003 06:26:11 GMT, Blinky the Shark wrote:
>>>> After years of doing it by hand, with other news clients, I was working
>>>> up something to do that, when lo!  Such a thing appeared in in this very
>>>> group.

>>>> From my .gvimrc:

>>>> " delete quote indicators on empty lines
>>>> " from w.citoan in n.s.r:
>>>> au BufRead ~/.followup :% s/^>[ >]*$//

>>> I put that in my .vimrc. However, when I do a followup, I get the
>>> following prompt:

>>> "~/.followup" 84L, 2780C
>>> 26 substitutions on 26 lines
>>> Hit ENTER or type command to continue

>>> Anyway of tweaking it so one does not have to confirm the substitutions?

>> I dunno, Mike.  (I don't get that.)

> So when you hit F you dont get a confirmation screen prior to seeing the
> post? Odd as i use your little toy as well and have always had that.

When I enter f in slrn, I get the "are you sure?"  prompt from that
program.  When I enter y, gvim opens, and my cursor is on the first
character in my attribution --  on the S in Sinner, in the case of this
reply.

-- 
Blinky - - - - - - - - - - - - - - - - - - - - - - - Linux RU 297263
<considering a new sig>
Re: [slrn] using vim
#137665
Author: Blinky the Shark
Date: Mon, 17 Nov 2003 20:16
21 lines
1913 bytes
Andreas Mitsis wrote:
>On 16 Nov 2003 06:26:11 GMT, "Blinky the Shark" wrote:

>> From my .gvimrc:

>> " delete quote indicators on empty lines
>> " from w.citoan in n.s.r:
>> au BufRead ~/.followup :% s/^>[ >]*$//

>Try this in .slrnrc

>set smart_quote 2  

The description of that setting in slrn's manual.txt doesn't imply that
it will accomplish what the other poster requested, and which solution I
supplied, above.  Nor does it accomplish that, here, when set as you
propose. 

-- 
Blinky - - - - - - - - - - - - - - - - - - - - - - - Linux RU 297263
<considering a new sig>
Re: [slrn] using vim
#137673
Author: surtin
Date: Mon, 17 Nov 2003 21:32
28 lines
2634 bytes
On 2003-11-17, Blinky the Shark wrote:
>Andreas Mitsis wrote:
>>On 16 Nov 2003 06:26:11 GMT, "Blinky the Shark" wrote:

>>> From my .gvimrc:

>>> " delete quote indicators on empty lines
>>> " from w.citoan in n.s.r:
>>> au BufRead ~/.followup :% s/^>[ >]*$//

>>Try this in .slrnrc

>>set smart_quote 2  

>The description of that setting in slrn's manual.txt doesn't imply that
>it will accomplish what the other poster requested, and which solution I
>supplied, above.  Nor does it accomplish that, here, when set as you
>propose. 

Hrm I don't know about you, since I don't use gvim with slrn (just plain ol'
vim here) -- but it actually did work on my end. That is keeping the spaces
rather then inserting a few ">".

-- 
       surtin | "Whatever the missing mass of the universe is, I hope it's
OoOooOOo -o)  | not cockroaches!"   -- Mom 
          /\  | 
         _\_v | 
Re: [slrn] using vim
#137677
Author: SINNER
Date: Mon, 17 Nov 2003 22:19
34 lines
3030 bytes
* Blinky the Shark Wrote in news.software.readers, on 17 Nov 2003 19:45:18 GMT:
> SINNER wrote:
>> * Blinky the Shark Wrote in news.software.readers, on 16 Nov 2003 22:18:19 GMT:

>>>> "~/.followup" 84L, 2780C
>>>> 26 substitutions on 26 lines
>>>> Hit ENTER or type command to continue

>>>> Anyway of tweaking it so one does not have to confirm the substitutions?

>>> I dunno, Mike.  (I don't get that.)

>> So when you hit F you dont get a confirmation screen prior to seeing the
>> post? Odd as i use your little toy as well and have always had that.

> When I enter f in slrn, I get the "are you sure?"  prompt from that
> program.  When I enter y, gvim opens, and my cursor is on the first
> character in my attribution --  on the S in Sinner, in the case of this
> reply.

When I hit F I get:

"~/.followup" 48L, 2305C
9 substitutions on 9 lines
Hit ENTER or type command to continue

Same as Mike got.
I hit enter and My cursor is on the B in Blinky. Perhaps its the
difference between using gvim and vim, I use the latter.

You can turn that "are you sure" prompt off you know.
-- 
David                    | AGM Favorite Games - http://tinyurl.com/loec 
This fortune is encrypted -- get your decoder rings ready!
Re: [slrn] using vim
#137681
Author: Blinky the Shark
Date: Mon, 17 Nov 2003 22:32
34 lines
2620 bytes
surtin wrote:
> On 2003-11-17, Blinky the Shark wrote:
>>Andreas Mitsis wrote:
>>>On 16 Nov 2003 06:26:11 GMT, "Blinky the Shark" wrote:

>>>> From my .gvimrc:

>>>> " delete quote indicators on empty lines
>>>> " from w.citoan in n.s.r:
>>>> au BufRead ~/.followup :% s/^>[ >]*$//

>>>Try this in .slrnrc

>>>set smart_quote 2  

>>The description of that setting in slrn's manual.txt doesn't imply that
>>it will accomplish what the other poster requested, and which solution I
>>supplied, above.  Nor does it accomplish that, here, when set as you
>>propose. 

> Hrm I don't know about you, since I don't use gvim with slrn (just plain ol'
> vim here) -- but it actually did work on my end. That is keeping the spaces
> rather then inserting a few ">".

The autocommand I provided removes the ">" (single or multiple) from
*previously quoted but otherwise blank lines*, as well.  IOW, it removes them
lines that contain nothing but ">" from *earlier* generations, that have been
inserted between textful paragraphs by other people.

smart_quote does not do this, does it?

-- 
Blinky - - - - - - - - - - - - - - - - - - - - - - - Linux RU 297263
<considering a new sig>
Re: [slrn] using vim
#137682
Author: Blinky the Shark
Date: Mon, 17 Nov 2003 22:39
47 lines
3129 bytes
SINNER wrote:
> * Blinky the Shark Wrote in news.software.readers, on 17 Nov 2003 19:45:18 GMT:
>> SINNER wrote:
>>> * Blinky the Shark Wrote in news.software.readers, on 16 Nov 2003 22:18:19 GMT:

>>>>> "~/.followup" 84L, 2780C
>>>>> 26 substitutions on 26 lines
>>>>> Hit ENTER or type command to continue

>>>>> Anyway of tweaking it so one does not have to confirm the substitutions?

>>>> I dunno, Mike.  (I don't get that.)

>>> So when you hit F you dont get a confirmation screen prior to seeing the
>>> post? Odd as i use your little toy as well and have always had that.

>> When I enter f in slrn, I get the "are you sure?"  prompt from that
>> program.  When I enter y, gvim opens, and my cursor is on the first
>> character in my attribution --  on the S in Sinner, in the case of this
>> reply.

> When I hit F I get:

Didn't mention this the last time you hit F, but when I it F I get Forwarding.
LIS, I hit f.  :)

> "~/.followup" 48L, 2305C
> 9 substitutions on 9 lines
> Hit ENTER or type command to continue

> Same as Mike got.
> I hit enter and My cursor is on the B in Blinky. Perhaps its the
> difference between using gvim and vim, I use the latter.

Doesn't seem like that should matter.

But how about this: I have some other autocommands running at open -- maybe
one kicks in next, and the first simulated keystroke it does clears that
prompt.

> You can turn that "are you sure" prompt off you know.

I don't mind it.  But for the record, what's the set for that?

-- 
Blinky - - - - - - - - - - - - - - - - - - - - - - - Linux RU 297263
<considering a new sig>
Re: [slrn] using vim
#137686
Author: Thomas Schultz
Date: Mon, 17 Nov 2003 22:54
12 lines
2041 bytes
* Blinky the Shark [2003-11-17 05:02] :
[...]
> Damn!  I can *never* remember Esc-? -- I *always* have to look it up,
> before I can read a spoiler.  :)

Space (article_page_down) also does the trick and might be easier to
remember :-)
-- 
Thomas Schultz <tststs@gmx.de>  News on slrn: http://slrn.sf.net/news.html
.-----------------------------. [2003-08-25] Released slrn 0.9.8.0
| Home of the slrn newsreader | [2003-08-19] New slrn FAQ available
| http://slrn.sourceforge.net | [2003-07-31] First beta with offline reading
Re: [slrn] using vim
#137690
Author: Andreas Mitsis
Date: Mon, 17 Nov 2003 23:24
27 lines
2129 bytes
On 17 Nov 2003 20:16:10 GMT, "Blinky the Shark" wrote:

> Andreas Mitsis wrote:
>>On 16 Nov 2003 06:26:11 GMT, "Blinky the Shark" wrote:
> 
>>> From my .gvimrc:
> 
>>> " delete quote indicators on empty lines
>>> " from w.citoan in n.s.r:
>>> au BufRead ~/.followup :% s/^>[ >]*$//
> 
>>Try this in .slrnrc
> 
>>set smart_quote 2  
> 
> The description of that setting in slrn's manual.txt doesn't imply that
> it will accomplish what the other poster requested, and which solution I
> supplied, above.  Nor does it accomplish that, here, when set as you
> propose. 

It will do just fine on previously unquoted lines. That's all.

andreas
-- 
43rd Law of Computing:
        Anything that can go wr
fortune: Segmentation violation -- Core dumped
Re: [slrn] using vim
#137694
Author: Steve
Date: Mon, 17 Nov 2003 23:54
27 lines
2783 bytes
On 17 Nov 2003 22:32:43 GMT, Blinky the Shark in news.software.readers wrote:
> surtin wrote:
>> On 2003-11-17, Blinky the Shark wrote:
>>>Andreas Mitsis wrote:

>>>>set smart_quote 2  

>>>The description of that setting in slrn's manual.txt doesn't imply that
>>>it will accomplish what the other poster requested, and which solution I
>>>supplied, above.  Nor does it accomplish that, here, when set as you
>>>propose. 

>> Hrm I don't know about you, since I don't use gvim with slrn (just plain ol'
>> vim here) -- but it actually did work on my end. That is keeping the spaces
>> rather then inserting a few ">".

> The autocommand I provided removes the ">" (single or multiple) from
> *previously quoted but otherwise blank lines*, as well.  IOW, it removes them
> lines that contain nothing but ">" from *earlier* generations, that have been
> inserted between textful paragraphs by other people.

> smart_quote does not do this, does it?


Definitely not in conjunction with your previous fix, perhaps on it's
own. I haven't tried it, as your suggestion worked, in conjunction with 
the another suggestion, to remove the nag warning your script offered up in vim.
Re: [slrn] using vim
#137699
Author: SINNER
Date: Tue, 18 Nov 2003 01:09
13 lines
2270 bytes
* Thomas Schultz Wrote in news.software.readers, on Mon, 17 Nov 2003 22:54:25 +0000 (UTC):
> * Blinky the Shark [2003-11-17 05:02] :
> [...]
>> Damn!  I can *never* remember Esc-? -- I *always* have to look it up,
>> before I can read a spoiler.  :)

> Space (article_page_down) also does the trick and might be easier to
> remember :-)

I'll be damned! Thanks Thomas!
-- 
David                    | AGM Favorite Games - http://tinyurl.com/loec 
Ignore previous fortune.
Re: [slrn] using vim
#137703
Author: Blinky the Shark
Date: Tue, 18 Nov 2003 02:17
28 lines
2244 bytes
Andreas Mitsis wrote:
> On 17 Nov 2003 20:16:10 GMT, "Blinky the Shark" wrote:

>> Andreas Mitsis wrote:
>>>On 16 Nov 2003 06:26:11 GMT, "Blinky the Shark" wrote:

>>>> From my .gvimrc:

>>>> " delete quote indicators on empty lines
>>>> " from w.citoan in n.s.r:
>>>> au BufRead ~/.followup :% s/^>[ >]*$//

>>>Try this in .slrnrc

>>>set smart_quote 2  

>> The description of that setting in slrn's manual.txt doesn't imply that
>> it will accomplish what the other poster requested, and which solution I
>> supplied, above.  Nor does it accomplish that, here, when set as you
>> propose. 

> It will do just fine on previously unquoted lines. That's all.

I'm not quite sure what that means.  Can you elaborate?

-- 
Blinky - - - - - - - - - - - - - - - - - - - - - - - Linux RU 297263
<considering a new sig>
Re: [slrn] using vim
#137704
Author: Blinky the Shark
Date: Tue, 18 Nov 2003 02:18
14 lines
1920 bytes
Thomas Schultz wrote:
> * Blinky the Shark [2003-11-17 05:02] :
> [...]
>> Damn!  I can *never* remember Esc-? -- I *always* have to look it up,
>> before I can read a spoiler.  :)

> Space (article_page_down) also does the trick and might be easier to
> remember :-)

I did not know that.  Thanks!

-- 
Blinky - - - - - - - - - - - - - - - - - - - - - - - Linux RU 297263
<considering a new sig>
Re: [slrn] using vim
#137713
Author: Blinky the Shark
Date: Tue, 18 Nov 2003 07:21
19 lines
1809 bytes
Andreas Mitsis wrote:
> On 16 Nov 2003 06:26:11 GMT, "Blinky the Shark" wrote:

>> From my .gvimrc:

>> " delete quote indicators on empty lines
>> " from w.citoan in n.s.r:
>> au BufRead ~/.followup :% s/^>[ >]*$//

> Try this in .slrnrc

> set smart_quote 2  

Yes, we've gone through that.  I did that.  That's what didn't do what
we (the other poster and I) were talking about.

-- 
Blinky - - - - - - - - - - - - - - - - - - - - - - - Linux RU 297263
<considering a new sig>
Re: [slrn] using vim
#137714
Author: Blinky the Shark
Date: Tue, 18 Nov 2003 07:51
23 lines
1965 bytes
Blinky the Shark wrote:

> Andreas Mitsis wrote:
>> On 16 Nov 2003 06:26:11 GMT, "Blinky the Shark" wrote:

>>> From my .gvimrc:

>>> " delete quote indicators on empty lines
>>> " from w.citoan in n.s.r:
>>> au BufRead ~/.followup :% s/^>[ >]*$//

>> Try this in .slrnrc

>> set smart_quote 2  

> Yes, we've gone through that.  I did that.  That's what didn't do what
> we (the other poster and I) were talking about.

Oops.  Replied to an old post I'd had tagged.  Sorry about that.

-- 
Blinky - - - - - - - - - - - - - - - - - - - - - - - Linux RU 297263
<considering a new sig>
Re: [slrn] using vim
#137776
Author: SINNER
Date: Wed, 19 Nov 2003 13:44
37 lines
3061 bytes
* Blinky the Shark Wrote in news.software.readers, on 17 Nov 2003 22:39:44 GMT:
> SINNER wrote:
>> * Blinky the Shark Wrote in news.software.readers, on 17 Nov 2003 19:45:18 GMT:
>>> SINNER wrote:
>>>> * Blinky the Shark Wrote in news.software.readers, on 16 Nov 2003 22:18:19 GMT:

> But how about this: I have some other autocommands running at open -- maybe
> one kicks in next, and the first simulated keystroke it does clears that
> prompt.

>> You can turn that "are you sure" prompt off you know.

> I don't mind it.  But for the record, what's the set for that?

See Set confirm_actions I use 27a

 6.15.  confirm_actions

Type: integer
Default: 31

This variable decides in which situations slrn will ask you to confirm
an action. It has a bitmapped value which can be the sum of any
combination of the following numbers:



		  1     Confirm marking groups as read or un-read.  
		  2     Confirm printing an article.  
		  4     Confirm posts, followups, replies and supersedes.  
		  8     Confirm leaving a group by following a news: URL.  
		  16    Confirm quitting slrn.
					      

-- 
David                    | AGM Favorite Games - http://tinyurl.com/loec 
Bones: "The man's DEAD, Jim!"
Re: [slrn] using vim
#137780
Author: SINNER
Date: Wed, 19 Nov 2003 15:44
25 lines
2834 bytes
* SINNER Wrote in news.software.readers, on Wed, 19 Nov 2003 13:44:23 GMT:
> * Blinky the Shark Wrote in news.software.readers, on 17 Nov 2003 22:39:44 GMT:
>> SINNER wrote:
>>> * Blinky the Shark Wrote in news.software.readers, on 17 Nov 2003 19:45:18 GMT:
>>>> SINNER wrote:
>>>>> * Blinky the Shark Wrote in news.software.readers, on 16 Nov 2003 22:18:19 GMT:

>> But how about this: I have some other autocommands running at open -- maybe
>> one kicks in next, and the first simulated keystroke it does clears that
>> prompt.

>>> You can turn that "are you sure" prompt off you know.

>> I don't mind it.  But for the record, what's the set for that?

> See Set confirm_actions I use 27a
                                  ^
				 TYPO :) 
[...]

-- 
David                    | AGM Favorite Games - http://tinyurl.com/loec 
When I was in school, I cheated on my metaphysics exam: I looked into
the soul of the boy sitting next to me.
		-- Woody Allen
Re: [slrn] using vim
#137842
Author: Mike Vanecek
Date: Fri, 21 Nov 2003 01:02
45 lines
2471 bytes
On 16 Nov 2003 22:29:38 GMT, Sven Guckes wrote:
> * Mike Vanecek <MikeV99@privacy.net>:
>> On 16 Nov 2003 06:26:11 GMT, Blinky the Shark wrote:
>>> " delete quote indicators on empty lines
>>> " from w.citoan in n.s.r:
>>> au BufRead ~/.followup :% s/^>[ >]*$//
>>
>> I put that in my .vimrc. However, when
>> I do a followup, I get the following prompt:
>>
>>   "~/.followup" 84L, 2780C
>>   26 substitutions on 26 lines
>>   Hit ENTER or type command to continue
>>
>> Anyway of tweaking it so one does not
>> have to confirm the substitutions?
>
>    :set cmdheight=2
>

Here is what my .vimrc looks like:

" Spelling Macros
map <f8> \1\2<CR>:e! %<CR>
map \1 :w!<CR>
map \2 :!/usr/local/bin/newsbody -qs -n % -p /usr/bin/aspell check
\%f<CR>
" Auto reformat macro
map <f5> gg/^$<CR>V/^-- $<CR>{gq`^
map <f4> :set nohlsearch
" delete quote indicators on empty lines
" from w.citoan in n.s.r:
au BufRead ~/.followup :% s/^>[ >]*$//
set cmdheight=2

Unfortunately, the addition of the quote indicators fix zapped my call
to the spelling macros. I do not know enough about what is going on here
to know how to fix it. 

Any assistance from one with more expertise than I would be appreciated.


-- 
  Thanks, Mike.
[vim] using aspell (was: [slrn] using vim)
#137857
Author: Sven Guckes
Date: Fri, 21 Nov 2003 10:44
32 lines
2181 bytes
[ news.software.readers -> comp.editors ]

* Mike Vanecek <MikeV99@privacy.net>:
> Here is what my .vimrc looks like:
>
> " Spelling Macros
> map <f8> \1\2<CR>:e! %<CR>
> map \1 :w!<CR>
> map \2 :!/usr/local/bin/newsbody -qs -n % -p /usr/bin/aspell check \%f<CR>
> " Auto reformat macro
> map <f5> gg/^$<CR>V/^-- $<CR>{gq`^
> map <f4> :set nohlsearch
> " delete quote indicators on empty lines
> " from w.citoan in n.s.r:
> au BufRead ~/.followup :% s/^>[ >]*$//
> set cmdheight=2
>
> Unfortunately, the addition of the quote indicators fix
> zapped my call to the spelling macros. I do not know enough
> about what is going on here to know how to fix it.

"quote indicators fix"?

if you are talking about the automatically
triggered substitution command then, sure,
this may create problems, too.  but it
should not affect your spelling program.

so - please clarify.

Sven
Re: [slrn] using vim
#137882
Author: Klaus Bosau
Date: Fri, 21 Nov 2003 19:55
11 lines
1601 bytes
Mike Vanecek wrote:

> Here is what my .vimrc looks like:
> 
> " Spelling Macros
> [...]
> map \2 :!/usr/local/bin/newsbody -qs -n % -p /usr/bin/aspell check \%f<CR>

"Newsbody"? What does it mean?

Klaus
Re: [slrn] using vim
#137883
Author: Steve
Date: Fri, 21 Nov 2003 20:06
13 lines
1980 bytes
On 21 Nov 2003 19:55:51 GMT, Klaus Bosau in news.software.readers wrote:
> Mike Vanecek wrote:

>> Here is what my .vimrc looks like:

>> " Spelling Macros
>> [...]
>> map \2 :!/usr/local/bin/newsbody -qs -n % -p /usr/bin/aspell check \%f<CR>

> "Newsbody"? What does it mean?

It a script that tells the spell application to ignore content between
the quote marks, signatures etc.
Re: [slrn] using vim
#137884
Author: SINNER
Date: Fri, 21 Nov 2003 20:10
33 lines
2970 bytes
* Klaus Bosau Wrote in news.software.readers, on 21 Nov 2003 19:55:51 GMT:
> Mike Vanecek wrote:

>> Here is what my .vimrc looks like:

>> " Spelling Macros
>> [...]
>> map \2 :!/usr/local/bin/newsbody -qs -n % -p /usr/bin/aspell check \%f<CR>

> "Newsbody"? What does it mean?

> Klaus

News body is part of the spellutils Package. Great little utility. 

http://home.worldonline.dk/byrial/spellutils/

The newsbody utility
The program newsbody is a utility to isolate the body part of a news or
email message in a separate file and then call some other program which
may change the body, and eventually merge the headers with the possibly
changed body. Optionally quotes and/or signature can be removed too, as
well as all or selected header lines can be kept. Newsbody can use both
named files and pipes for both input and output. 

It is typically called from a newsreader (e.g. from slrn's
`post_filter_hook'), a mailer (e.g. from mutt's `filter-entry' or
`ispell' commands) or an editor. It can e.g. be used to spell check or
encrypt the message before sending. 

-- 
David                    | AGM Favorite Games - http://tinyurl.com/loec 
Stamp out philately.
Re: [slrn] using vim
#137885
Author: Thierry Thomas
Date: Fri, 21 Nov 2003 20:19
8 lines
1884 bytes
On 21 Nov 2003 19:55:51 GMT, Klaus Bosau wrote:
> > map \2 :!/usr/local/bin/newsbody -qs -n % -p /usr/bin/aspell check \%f<CR>

>  "Newsbody"? What does it mean?

See <http://home.worldonline.dk/byrial/spellutils/>.
-- 
Th. Thomas.
Re: [vim] using aspell (was: [slrn] using vim)
#137901
Author: Mike Vanecek
Date: Sat, 22 Nov 2003 01:02
58 lines
3059 bytes
On 21 Nov 2003 10:44:46 GMT, Sven Guckes wrote:
> [ news.software.readers -> comp.editors ]

> * Mike Vanecek <MikeV99@privacy.net>:
>> Here is what my .vimrc looks like:

>> " Spelling Macros
>> map <f8> \1\2<CR>:e! %<CR>
>> map \1 :w!<CR>
>> map \2 :!/usr/local/bin/newsbody -qs -n % -p /usr/bin/aspell check \%f<CR>
>> " Auto reformat macro
>> map <f5> gg/^$<CR>V/^-- $<CR>{gq`^
>> map <f4> :set nohlsearch
>> " delete quote indicators on empty lines
>> " from w.citoan in n.s.r:
>> au BufRead ~/.followup :% s/^>[ >]*$//
>> set cmdheight=2

>> Unfortunately, the addition of the quote indicators fix
>> zapped my call to the spelling macros. I do not know enough
>> about what is going on here to know how to fix it.

> "quote indicators fix"?

> if you are talking about the automatically
> triggered substitution command then, sure,
> this may create problems, too.  but it
> should not affect your spelling program.

> so - please clarify.

> Sven

Notice that the quoting algorithm works quite nicely when I do
follow-up. However, when I press F8 to spell check (which works OK without
the following code enabled):

>> au BufRead ~/.followup :% s/^>[ >]*$//
>> set cmdheight=2

I get the following error:

".followup" 53L, 1844C
Error detected while processing BufRead Auto commands for
"/home/uid/.followup":
Pattern not found: ^>[ >]*$
Hit ENTER or type command to continue

This error occurs upon completion of the spell check when it is
returning to the editor.

Can you advise me on how to get both to work without the error message
nor need to hit ENTER (my fist is getting sore from all the hitting -
wonder what happened to PRESS)?

-- 
  Thanks, Mike.
Page 1 of 2 • 70 total messages
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