🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
11 messages
11 total messages Started by Sphincter Sat, 17 May 2003 16:47
[Slrn 0974] Getting gVim to work as editor?
#125055
Author: Sphincter
Date: Sat, 17 May 2003 16:47
30 lines
1849 bytes
[Linux] [Slrn 0974] [ gvim6.0] [KDE 3.1]

Hi folks,

Being new to both Linux and Slrn, I've the feeling this is a
horribly simple problem. The problem here is just how do I get
gvim6.0 to work as the editor for Slrn? I've tried calling several
editors (plain old vim, Kedit, and Kate et...) and they all work
just fine. In fact, I'm posting now under Kate. But when I push vim
into gui mode it fails.

This line works just fine: (failed with the -g option)

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

Using a line similar to the above fails?

set editor_command "gvim '+set tw=72' +%d '%s'"

What I mean here is that I do indeed end up in the vim GUI (toolbars
and all), editing the message works, saving the message works, but
when I exit, slrn reports the file as 'not modified'. Therefore, no
post or reply even though the edited file does exist.

No doubt I'm missing the obvious right? Any suggestions at all would
be appreciated.

TIA

Re: [Slrn 0974] Getting gVim to work as editor?
#125058
Author: SINNER
Date: Sat, 17 May 2003 17:19
39 lines
2685 bytes
While strolling through news.software.readers, Sphincter was overheard plotting:
> [Linux] [Slrn 0974] [ gvim6.0] [KDE 3.1]

> Hi folks,

> Being new to both Linux and Slrn, I've the feeling this is a
> horribly simple problem. The problem here is just how do I get
> gvim6.0 to work as the editor for Slrn? I've tried calling several
> editors (plain old vim, Kedit, and Kate et...) and they all work
> just fine. In fact, I'm posting now under Kate. But when I push vim
> into gui mode it fails.

> This line works just fine: (failed with the -g option)

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

> Using a line similar to the above fails?

> set editor_command "gvim '+set tw=72' +%d '%s'"

> What I mean here is that I do indeed end up in the vim GUI (toolbars
> and all), editing the message works, saving the message works, but
> when I exit, slrn reports the file as 'not modified'. Therefore, no
> post or reply even though the edited file does exist.

> No doubt I'm missing the obvious right? Any suggestions at all would
> be appreciated.

are you saving the message?

using :qw or ZZ will save the message and close the editor, this should
prompt you to post, edit etc...

do not change the filename, slrn is looking for ~/.article or
~/.followup to change.
-- 
David
Being a mime means never having to say you're sorry.
Re: [Slrn 0974] Getting gVim to work as editor?
#125060
Author: Blinky the Shark
Date: Sat, 17 May 2003 17:26
31 lines
1817 bytes
Sphincter wrote:

> [Linux] [Slrn 0974] [ gvim6.0] [KDE 3.1]

> Hi folks,

> Being new to both Linux and Slrn, I've the feeling this is a
> horribly simple problem. The problem here is just how do I get
> gvim6.0 to work as the editor for Slrn? I've tried calling several
> editors (plain old vim, Kedit, and Kate et...) and they all work
> just fine. In fact, I'm posting now under Kate. But when I push vim
> into gui mode it fails.

> This line works just fine: (failed with the -g option)

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

> Using a line similar to the above fails?

> set editor_command "gvim '+set tw=72' +%d '%s'"

I use

set editor_command "gvim -f '+set tw=72' +%d '%s'"

Try including that forking switch.

-- 
Blinky                           Linux Registered User 297263
New May 4 - Apple Innovation       http://snurl.com/apple2003
Re: [Slrn 0974] Getting gVim to work as editor?
#125064
Author: Sphincter
Date: Sat, 17 May 2003 19:29
34 lines
1825 bytes
On 17 May 2003 17:26:24 GMT, Blinky the Shark <no.spam@box.invalid> wrote:

> Sphincter wrote:
> 
>> [Linux] [Slrn 0974] [ gvim6.0] [KDE 3.1]
> 
>> Hi folks,
> 
>> Being new to both Linux and Slrn, I've the feeling this is a
>> horribly simple problem. The problem here is just how do I get

[snip]

> I use
> 
> set editor_command "gvim -f '+set tw=72' +%d '%s'"
> 
> Try including that forking switch.
>

Thanks Blinky!!!

Excellent. I had the feeling it was Vim specific. I've been with gVim
under windows for quite a few months and never needed, or even knew,
that a forking switch would be valuable. I assume the same goes for the
newer 6.1? I'm going to re-build the thing with all its patches.

Let me guess, migrating my vim setup from windoze *isn't* going to be
easy now is it?

Any suggestions on how to handle multiple identities with slrn?. Anyone?

TIA
Re: [Slrn 0974] Getting gVim to work as editor?
#125067
Author: Ben Shimmin
Date: Sat, 17 May 2003 21:12
15 lines
1381 bytes
Sphincter <sphincter@bellsouth.net>:

[...]

> Any suggestions on how to handle multiple identities with slrn?. Anyone?

Perhaps <URL:http://digilander.iol.it/ebassi/identity.sl> might help.

b.

-- 
`This reader really does include X-Meow: in its default header displays, but
 it's a pretty safe bet that feature won't be propagated too widely.'
 -- Fluffy in news.software.nntp
Re: [Slrn 0974] Getting gVim to work as editor?
#125070
Author: Blinky the Shark
Date: Sat, 17 May 2003 23:01
48 lines
2339 bytes
Sphincter wrote:

> On 17 May 2003 17:26:24 GMT, Blinky the Shark <no.spam@box.invalid> wrote:

>> Sphincter wrote:

>>> [Linux] [Slrn 0974] [ gvim6.0] [KDE 3.1]

>>> Hi folks,

>>> Being new to both Linux and Slrn, I've the feeling this is a
>>> horribly simple problem. The problem here is just how do I get

> [snip]

>> I use

>> set editor_command "gvim -f '+set tw=72' +%d '%s'"

>> Try including that forking switch.

> Thanks Blinky!!!

My pleasure.  Welcome to the real (not Windows) slrn mafia.

> Excellent. I had the feeling it was Vim specific. I've been with gVim
> under windows for quite a few months and never needed, or even knew,
> that a forking switch would be valuable. I assume the same goes for the
> newer 6.1? I'm going to re-build the thing with all its patches.

I'm usihg 6.1.165.  That's all I know. :)

> Let me guess, migrating my vim setup from windoze *isn't* going to be
> easy now is it?

Probably best to just start clean.  A fresh config shouldn't be a deal
killer.

> Any suggestions on how to handle multiple identities with slrn?. Anyone?

identity.sl macro, here:

http://digilander.libero.it/ebassi/slrn.html

-- 
Blinky                           Linux Registered User 297263
New May 4 - Apple Innovation       http://snurl.com/apple2003
Re: [Slrn 0974] Getting gVim to work as editor?
#125073
Author: Sphincter
Date: Sun, 18 May 2003 02:34
68 lines
3223 bytes
On 17 May 2003 23:01:17 GMT, Blinky the Shark <no.spam@box.invalid> wrote:
> Sphincter wrote:
> 
>> On 17 May 2003 17:26:24 GMT, Blinky the Shark <no.spam@box.invalid> wrote:
> 
>>> Sphincter wrote:
> 
>>>> [Linux] [Slrn 0974] [ gvim6.0] [KDE 3.1]
> 
>>>> Hi folks,
> 
>>>> Being new to both Linux and Slrn, I've the feeling this is a
>>>> horribly simple problem. The problem here is just how do I get
> 
>> [snip]
> 
>>> I use
> 
>>> set editor_command "gvim -f '+set tw=72' +%d '%s'"
> 
>>> Try including that forking switch.
> 
>> Thanks Blinky!!!
> 
> My pleasure.  Welcome to the real (not Windows) slrn mafia.
> 

Really?. Do I get a gun? I really want a gun. A gun with a long
barrel and lots of bullets. ;)

>> Excellent. I had the feeling it was Vim specific. I've been with gVim
>> under windows for quite a few months and never needed, or even knew,
>> that a forking switch would be valuable. I assume the same goes for the
>> newer 6.1? I'm going to re-build the thing with all its patches.
> 
> I'm usihg 6.1.165.  That's all I know. :)

Just curious, is there any reason you're sticking with .165 (Outside of
building the code from source?) When I'm finished, I'm looking at
6.1.472?... Vim is way too critical a thing to side-step! IMHO
 
>> Let me guess, migrating my vim setup from windoze *isn't* going to be
>> easy now is it?
> 
> Probably best to just start clean.  A fresh config shouldn't be a deal
> killer.

Guess not, but I'm a goat and tend to resist change. Sound familiar?
Regardless, I'm going semi-clean on this. Thanks. New OS and new ways to see
things. Still plan on pushing some of my custom menu scripts (from
windows) to linux although.
 
>> Any suggestions on how to handle multiple identities with slrn?. Anyone?
> 
> identity.sl macro, here:
> 
> http://digilander.libero.it/ebassi/slrn.html

Thanks again... but not the last of my stupid questions.

Is it possible to hand the highlighting I see in Slrn off to Vim? I
could be wrong, but I think I've seen pics of folks that already did
this. Even if I am wrong, *Surely* vim can be made to do this!

Suggestions? Anyone?

Thanks
Re: [Slrn 0974] Getting gVim to work as editor?
#125085
Author: Andrew Preater
Date: Sun, 18 May 2003 09:04
37 lines
2718 bytes
* Sphincter <sphincter@bellsouth.net>:
> Blinky the Shark <no.spam@box.invalid> wrote:
>> Welcome to the real (not Windows) slrn mafia.
> 
> Really?. Do I get a gun? I really want a gun. A gun with a long
> barrel and lots of bullets. ;)

It's news to me that there's such a thing as a Windoze slrn Mafia!
Still, welcome.

> Is it possible to hand the highlighting I see in Slrn off to Vim? I
> could be wrong, but I think I've seen pics of folks that already did
> this. Even if I am wrong, *Surely* vim can be made to do this!

Do you mean the colouring of quoted text, headers etc?  Vim does
syntax highlighting for all sorts of file types, even really obscure
stuff (you can change the colours to your taste, of course).  You need
to set: 

syn on

in your .vimrc.  But I'd think it's already set in your global vimrc,
no?  I also have these colours set which I find more readable:

hi normal   ctermfg=white  ctermbg=black guifg=white  guibg=black
hi nontext  ctermfg=blue   ctermbg=black guifg=blue   guibg=black

But you might mean "When I reply in slrn, the [g]Vim that starts
doesn't have syntax colouring" -- I've seen this before, there was no
good explanation (one day it was there, the next day it wasn't) but I
got around it by specifying filetype in my .slrnrc:

set editor_command "vim '+set filetype=mail' +%d '%s'"

-- 
Andrew Preater
Re: [Slrn 0974] Getting gVim to work as editor?
#125087
Author: Blinky the Shark
Date: Sun, 18 May 2003 09:23
33 lines
2215 bytes
Sphincter wrote:

> On 17 May 2003 23:01:17 GMT, Blinky the Shark <no.spam@box.invalid> wrote:

>> I'm usihg 6.1.165.  That's all I know. :)

> Just curious, is there any reason you're sticking with .165 (Outside of
> building the code from source?) When I'm finished, I'm looking at
> 6.1.472?... Vim is way too critical a thing to side-step! IMHO

I'm lazy.  :)

>>> Any suggestions on how to handle multiple identities with slrn?. Anyone?

>> identity.sl macro, here:

>> http://digilander.libero.it/ebassi/slrn.html

> Thanks again... but not the last of my stupid questions.

Might be the last of my answers.  ;)

> Is it possible to hand the highlighting I see in Slrn off to Vim? I
> could be wrong, but I think I've seen pics of folks that already did
> this. Even if I am wrong, *Surely* vim can be made to do this!

Uh...you mean the colorization you have set up in slrn for bold, italic,
underline, verbatims, and stuff like that?

-- 
Blinky                           Linux Registered User 297263
New May 4 - Apple Innovation       http://snurl.com/apple2003
Re: [Slrn 0974] Getting gVim to work as editor?
#125195
Author: Sphincter
Date: Wed, 21 May 2003 01:27
15 lines
1683 bytes
On Sun, 18 May 2003 10:04:24 +0100, Andrew Preater <preater@deadspam.com> wrote:
> * Sphincter <sphincter@bellsouth.net>:
>> Blinky the Shark <no.spam@box.invalid> wrote:

> But you might mean "When I reply in slrn, the [g]Vim that starts
> doesn't have syntax colouring" -- I've seen this before, there was no
> good explanation (one day it was there, the next day it wasn't) but I
> got around it by specifying filetype in my .slrnrc:
> 
> set editor_command "vim '+set filetype=mail' +%d '%s'"

Yep, this was what I meant. Thanks!. This pretty much does most of what
I want.

Re: [Slrn 0974] Getting gVim to work as editor?
#125196
Author: Sphincter
Date: Wed, 21 May 2003 01:27
24 lines
1908 bytes
On 18 May 2003 09:23:22 GMT, Blinky the Shark <no.spam@box.invalid> wrote:
> Sphincter wrote:
> 
>> On 17 May 2003 23:01:17 GMT, Blinky the Shark <no.spam@box.invalid> wrote:

>> Thanks again... but not the last of my stupid questions.
> 
> Might be the last of my answers.  ;)
> 

In that case, I'll do my best to keep the stupidity levels low. :)

>> Is it possible to hand the highlighting I see in Slrn off to Vim? I
>> could be wrong, but I think I've seen pics of folks that already did
>> this. Even if I am wrong, *Surely* vim can be made to do this!
> 
> Uh...you mean the colorization you have set up in slrn for bold, italic,
> underline, verbatims, and stuff like that?
>

Yep. But someone already mentioned the "mail" syntax file for Vim. Works
well enough for me. Thanks.
 
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