🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
17 messages
17 total messages Started by Pscylo Thu, 13 Mar 2003 23:20
[slrn] & [gvim]
#121811
Author: Pscylo
Date: Thu, 13 Mar 2003 23:20
29 lines
1901 bytes
I've seen a thread or two about this, but I can't seem to get this to work 
properly.

The above line should make the point hopefully as I can't get Gvim to
wrap properly and I'm having to put the carriage return in by hand.

The command I'm using in my slrn.rc is:

set editor_command "C:\\Vim\\vim61\\gvim -f "+set tw=72" +%d "

and if I enter the relevant part of this at the command prompt it 
correctly opens the gvim and the lines wrap in the right places. 

However when gvim is called by slrn, it doesn't wrap correctly and
whilst I haven't tried, I'm sure I could enter a 1000 character long
line without it complaining (it'll certainly take over 200 characters)

I'm pretty new to both Gvim and slrn as I work on a Windows platform
mainly (cowers under shielding hands), but I'm trying these out in 
anticipation of moving over to Linux if I can.

Any help much appreciated.

Pscylo



Re: [slrn] & [gvim]
#121815
Author: David B
Date: Fri, 14 Mar 2003 00:14
21 lines
1590 bytes
Pscylo <Pscylo@yesthisemailaddressworks.com> wrote:
>  I've seen a thread or two about this, but I can't seem to get this to work
>  properly.
[...]
>  The command I'm using in my slrn.rc is:
>
>  set editor_command "C:\\Vim\\vim61\\gvim -f "+set tw=72" +%d "

As you've written it, doesn't slrn only see the part up to the closing
quote mark? i.e.:

set editor_command "C:\\Vim\\vim61\\gvim -f "

I think you need something like the following:

set editor_command "C:\\Vim\\vim61\\gvim -f '+set tw=72' +%d "

-- 
David
mailto:david@davidbreach.co.uk
Re: [slrn] & [gvim]
#121818
Author: Pscylo
Date: Fri, 14 Mar 2003 01:05
31 lines
1988 bytes
On 14 Mar 2003 00:14:18 GMT, David B <spam@davidbreach.co.uk> let rip with the following garbage:
> Pscylo <Pscylo@yesthisemailaddressworks.com> wrote:
>>  I've seen a thread or two about this, but I can't seem to get this to work
>>  properly.
> [...]
>>  The command I'm using in my slrn.rc is:
>>
>>  set editor_command "C:\\Vim\\vim61\\gvim -f "+set tw=72" +%d "
> 
> As you've written it, doesn't slrn only see the part up to the closing
> quote mark? i.e.:
> 
> set editor_command "C:\\Vim\\vim61\\gvim -f "
> 
> I think you need something like the following:
> 
> set editor_command "C:\\Vim\\vim61\\gvim -f '+set tw=72' +%d "
> 

Doesn't seem to work, now have the follwoing:

set editor_command "C:\\Vim\\vim61\\gvim -f %s '+set tw=72' +%d " 

if I miss the %s it picks the 'set tw-=72' as the file name, this line is now
over 2 char.

nay other suggestions.

Pscylo

Re: [slrn] & [gvim]
#121820
Author: Tiger
Date: Fri, 14 Mar 2003 01:51
35 lines
2643 bytes
On Fri, 14 Mar 2003 01:05:58 GMT, Pscylo <Pscylo@yesthisemailaddressworks.com> wrote:
> On 14 Mar 2003 00:14:18 GMT, David B <spam@davidbreach.co.uk> let rip with the following garbage:
>> Pscylo <Pscylo@yesthisemailaddressworks.com> wrote:
>>>  I've seen a thread or two about this, but I can't seem to get this to work
>>>  properly.
>> [...]
>>>  The command I'm using in my slrn.rc is:
>>>
>>>  set editor_command "C:\\Vim\\vim61\\gvim -f "+set tw=72" +%d "
>> 
>> As you've written it, doesn't slrn only see the part up to the closing
>> quote mark? i.e.:
>> 
>> set editor_command "C:\\Vim\\vim61\\gvim -f "
>> 
>> I think you need something like the following:
>> 
>> set editor_command "C:\\Vim\\vim61\\gvim -f '+set tw=72' +%d "
>> 
> 
> Doesn't seem to work, now have the follwoing:
> 
> set editor_command "C:\\Vim\\vim61\\gvim -f %s '+set tw=72' +%d " 
> 
> if I miss the %s it picks the 'set tw-=72' as the file name, this line is now
> over 2 char.
> 
set editor_command "C:\\Vim\\vim61\\gvim '+set tw=72' -f +%d '%s'" 

-- 
Tiger
*Registered Linux User #279548
Mandrake 9.0
Fluxbox 0.1.14
Re: [slrn] & [gvim]
#121821
Author: SINNER
Date: Fri, 14 Mar 2003 02:09
23 lines
2002 bytes
While strolling through news.software.readers, Pscylo was overheard plotting:
>> 
>> set editor_command "C:\\Vim\\vim61\\gvim -f '+set tw=72' +%d "
>> 
> 
> Doesn't seem to work, now have the follwoing:
> 
> set editor_command "C:\\Vim\\vim61\\gvim -f %s '+set tw=72' +%d " 
> 
> if I miss the %s it picks the 'set tw-=72' as the file name, this line is now
> over 2 char.
> 
> nay other suggestions.
> 
here is mine:

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


-- 
David
He who lives without folly is less wise than he believes.
Re: [slrn] & [gvim]
#121822
Author: Blinky the Shark
Date: Fri, 14 Mar 2003 03:49
30 lines
1788 bytes
SINNER wrote:

> While strolling through news.software.readers, Pscylo was overheard plotting:

>>> set editor_command "C:\\Vim\\vim61\\gvim -f '+set tw=72' +%d "


>> Doesn't seem to work, now have the follwoing:

>> set editor_command "C:\\Vim\\vim61\\gvim -f %s '+set tw=72' +%d " 

>> if I miss the %s it picks the 'set tw-=72' as the file name, this line is now
>> over 2 char.

>> nay other suggestions.

> here is mine:

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

I'm with ya:

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

-- 
Blinky
Hot! New! Windows RG Released:  http://snurl.com/WinRG (SWF Req'd)
Real iMac Origin:   http://web.newsguy.com/dogfish/images/imac.jpg

Re: [slrn] & [gvim]
#121825
Author: SINNER
Date: Fri, 14 Mar 2003 04:39
26 lines
2157 bytes
While strolling through news.software.readers, Blinky the Shark was overheard plotting:
> 
>> here is mine:
> 
>> set editor_command "vim -f '+set tw=72' +%d '%s'"
> 
> I'm with ya:
> 
> set editor_command "gvim -f '+set tw=72' +%d '%s'"
> 
I used to use 'g' because I had copy/paste issues (Laptop with a touch
pad and a 2 button mouse). Ever since my conversation with Brother Hans
and adding the following to ~/.vimrc: 

" Make shift-insert work like in Xterm
"
map <S-Insert> MiddleMouse>
map! <S-Insert> MiddleMouse>

I have the ability to use  Shift-Insert to paste into vim, so I have no
need for the hedonistic 'g' :P~

-- 
David
I can't drive 55.
Re: [slrn] & [gvim]
#121829
Author: Pscylo
Date: Fri, 14 Mar 2003 09:51
44 lines
2812 bytes
On Fri, 14 Mar 2003 04:39:54 GMT, SINNER <99nesorjd@gates_of_hell.INVALID> let rip with the following garbage:
> While strolling through news.software.readers, Blinky the Shark was overheard plotting:
>> 
>>> here is mine:
>> 
>>> set editor_command "vim -f '+set tw=72' +%d '%s'"
>> 
>> I'm with ya:
>> 
>> set editor_command "gvim -f '+set tw=72' +%d '%s'"
>> 
> I used to use 'g' because I had copy/paste issues (Laptop with a touch
> pad and a 2 button mouse). Ever since my conversation with Brother Hans
> and adding the following to ~/.vimrc: 
> 
> " Make shift-insert work like in Xterm
> "
> map <S-Insert> MiddleMouse>
> map! <S-Insert> MiddleMouse>
> 
> I have the ability to use  Shift-Insert to paste into vim, so I have no
> need for the hedonistic 'g' :P~
> 



I think I'm seeng some bizarre Windows behaviour here (yeah I know, get
a proper OS - that's kinda the plan eventually, we all have to start
somwhere). Its now working, but the only way I can get it to work is to
set the terminal width in the _vimrc. No matter what I do, the command
in slrn.rc misinterprets the '' markes that you have to have around the
command, and as pointed out by somebody earlier using "" which it does
reconize cuts the command line short.

Anyways guts (and maybe gals) thanks for your comments, it may not have
solved the issues that I have, but it put me on the right track and its
much appreciated.

Pscylo




Re: [slrn] & [gvim]
#121842
Author: Andrew Preater
Date: Fri, 14 Mar 2003 17:12
21 lines
1817 bytes
* SINNER <99nesorjd@gates_of_hell.INVALID>:
> here is mine:
> 
> set editor_command "vim -f '+set tw=72' +%d '%s'"

The usual. :)

Interestingly, if I reply using Vim then articles aren't
syntax-colored as `mail'-type files.  I have to something like this:

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

Which shouldn't be necessary, should it?  It did used to work without
`filetype', but I don't have the foggiest idea when and why it stopped
working properly.  BTW I put the tw part in .vimrc, like so:

au FileType mail set tw=72

-- 
Andrew Preater
Re: [slrn] & [gvim]
#121845
Author: David B
Date: Fri, 14 Mar 2003 19:30
19 lines
1477 bytes
Blinky the Shark <no.spam@box.invalid> wrote:
>  SINNER wrote:
>
>> here is mine:
>
>> set editor_command "vim -f '+set tw=72' +%d '%s'"
>
> I'm with ya:
>
>  set editor_command "gvim -f '+set tw=72' +%d '%s'"

Just to join in, this works fine for me:

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

-- 
David
mailto:david@davidbreach.co.uk
Re: [slrn] & [gvim]
#121847
Author: David B
Date: Fri, 14 Mar 2003 19:32
18 lines
1597 bytes
Pscylo <Pscylo@yesthisemailaddressworks.com> wrote:
>  Doesn't seem to work, now have the follwoing:
>
>  set editor_command "C:\\Vim\\vim61\\gvim -f %s '+set tw=72' +%d "
>
>  if I miss the %s it picks the 'set tw-=72' as the file name, this line is now
>  over 2 char.

Hmm, subtle difference, but from my own set up:

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

I think you need to wrap the %s in inverted commas.

-- 
David
mailto:david@davidbreach.co.uk
Re: [slrn] & [gvim]
#121848
Author: Blinky the Shark
Date: Fri, 14 Mar 2003 19:51
26 lines
1704 bytes
David B wrote:

> Blinky the Shark <no.spam@box.invalid> wrote:
>>  SINNER wrote:

>>> here is mine:

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

>> I'm with ya:

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

> Just to join in, this works fine for me:

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

Hmmmm.  Without the fork switch?  Sure didn't here.  Must be you have
better mojo enabled.

-- 
Blinky
Hot! New! Windows RG Released:  http://snurl.com/WinRG (SWF Req'd)
Real iMac Origin:   http://web.newsguy.com/dogfish/images/imac.jpg

Re: [slrn] & [gvim]
#121857
Author: SINNER
Date: Sat, 15 Mar 2003 03:50
37 lines
2646 bytes
While strolling through news.software.readers, Andrew Preater was overheard plotting:
> * SINNER <99nesorjd@gates_of_hell.INVALID>:
>> here is mine:
>> 
>> set editor_command "vim -f '+set tw=72' +%d '%s'"
> 
> The usual. :)

Yup :)

> 
> Interestingly, if I reply using Vim then articles aren't
> syntax-colored as `mail'-type files.  I have to something like this:
> 

Hmm, mine is, not by quote level, but definatley synaticly colored for
instance, any line started with From <----appears green.

> set editor_command "vim '+set filetype=mail' +%d '%s'
> 
> Which shouldn't be necessary, should it?  It did used to work without
> `filetype', but I don't have the foggiest idea when and why it stopped
> working properly.  BTW I put the tw part in .vimrc, like so:
> 

I had similar strangeness. For a long time files would not open where I
left them, slrnrc was notorius for this, then one day, without warning,
everything worked again...

> au FileType mail set tw=72
> 

No need for that line either...odd
-- 
David
Hodie natus est radici frater.
Re: [slrn] & [gvim]
#121869
Author: David B
Date: Sat, 15 Mar 2003 11:54
21 lines
1893 bytes
Blinky the Shark <no.spam@box.invalid> wrote:
>  David B wrote:
>> Just to join in, this works fine for me:
>
>> set editor_command "vim '+set tw=72' +%d '%s'"
>
> Hmmmm.  Without the fork switch?  Sure didn't here.  Must be you have
>  better mojo enabled.

According to a "man vim", for the 'Foreground' option: "For the GUI
version, Vim will not fork and detach from the shell it was started in".
Could be because I'm not using the GUI version of vim?

It also says "This option should be used when Vim is executed by a
program that will wait for the edit session to finish (e.g. mail)", and
I don't have to use it for mutt either :-)

-- 
David
mailto:david@davidbreach.co.uk
Re: [slrn] & [gvim]
#121870
Author: Andrew Preater
Date: Sat, 15 Mar 2003 12:11
44 lines
3093 bytes
* SINNER <99nesorjd@gates_of_hell.INVALID>:
> Andrew Preater was overheard plotting:
>> Interestingly, if I reply using Vim then articles aren't
>> syntax-colored as `mail'-type files.  I have to something like
>> this:
> 
> Hmm, mine is, not by quote level, but definatley synaticly colored
> for instance, any line started with From <----appears green.

Snap, looks like: http://www.preater.f9.co.uk/snapshot/vim-mail.png
Syntax highlighting set for dark backgrounds.

> I had similar strangeness. For a long time files would not open
> where I left them, slrnrc was notorius for this, then one day,
> without warning, everything worked again...

Yes!  It still works as it used to in Debian woody, and I don't know
what's changed since then.  I haven't done anything special to my
vimrc, slrnrc, or global vimrc.  I have installed a Mandrake security
update for Vim, but that's all, and anyway that was after this
behaviour started happening.  In the global vimrc:

" Enable file type detection.
  " Use the default filetype settings, so that mail gets 'tw' set to 72,
  " 'cindent' is on in C files, etc.
  " Also load indent files, to automatically do language-dependent indenting.
  filetype plugin indent on

  " For all text files set 'textwidth' to 78 characters.
  autocmd FileType text setlocal textwidth=78

Pretty sure this is the default that comes with Vim.  So I shouldn't
have to do anything special -- Vim should "know" what mail / news
articles are, and set tw to 72.  Strangly enough, for text files the
tw _isn't_ set to 78 by default -- and I haven't changed anything in
my ~/.vimrc.

But I'm willing to bet I've done something stupid (and simple) that's
messed things up.  One morning I will wake up and go "By jove, I've
got it!" and the mystery will be solved. :)

-- 
Andrew Preater
Re: [slrn] & [gvim]
#121881
Author: SINNER
Date: Sat, 15 Mar 2003 16:39
56 lines
3929 bytes
While strolling through news.software.readers, Andrew Preater was overheard plotting:
> * SINNER <99nesorjd@gates_of_hell.INVALID>:
>> Andrew Preater was overheard plotting:
>>> Interestingly, if I reply using Vim then articles aren't
>>> syntax-colored as `mail'-type files.  I have to something like
>>> this:
>> 
>> Hmm, mine is, not by quote level, but definatley synaticly colored
>> for instance, any line started with From <----appears green.
> 
> Snap, looks like: http://www.preater.f9.co.uk/snapshot/vim-mail.png
> Syntax highlighting set for dark backgrounds.

Exactly like mine without the filetype settings.

> 
>> I had similar strangeness. For a long time files would not open
>> where I left them, slrnrc was notorius for this, then one day,
>> without warning, everything worked again...
> 
> Yes!  It still works as it used to in Debian woody, and I don't know
> what's changed since then.  I haven't done anything special to my
> vimrc, slrnrc, or global vimrc.  I have installed a Mandrake security
> update for Vim, but that's all, and anyway that was after this
> behaviour started happening.  In the global vimrc:
>

I did the security update also, I wonder if that was it, the fix I mean,
I wasn't paying that close attention to the timing of it all.

> " Enable file type detection.
>   " Use the default filetype settings, so that mail gets 'tw' set to 72,
>   " 'cindent' is on in C files, etc.
>   " Also load indent files, to automatically do language-dependent indenting.
>   filetype plugin indent on
> 
>   " For all text files set 'textwidth' to 78 characters.
>   autocmd FileType text setlocal textwidth=78
> 
> Pretty sure this is the default that comes with Vim.  So I shouldn't
> have to do anything special -- Vim should "know" what mail / news
> articles are, and set tw to 72.  Strangly enough, for text files the
> tw _isn't_ set to 78 by default -- and I haven't changed anything in
> my ~/.vimrc.
> 
> But I'm willing to bet I've done something stupid (and simple) that's
> messed things up.  One morning I will wake up and go "By jove, I've
> got it!" and the mystery will be solved. :)
> 

Either that or you will find the answer right at the top of TFM ;)
-- 
David
It's a brave man who, when things are at their darkest, can kick back and party!
		-- Dennis Quaid, "Inner Space"
Re: [slrn] & [gvim]
#121890
Author: Blinky the Shark
Date: Sun, 16 Mar 2003 08:24
23 lines
1863 bytes
David B wrote:

> Blinky the Shark <no.spam@box.invalid> wrote:
>>  David B wrote:
>>> Just to join in, this works fine for me:

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

>> Hmmmm.  Without the fork switch?  Sure didn't here.  Must be you have
>>  better mojo enabled.

> According to a "man vim", for the 'Foreground' option: "For the GUI
> version, Vim will not fork and detach from the shell it was started in".
> Could be because I'm not using the GUI version of vim?

Doh!  Never mind.

-- 
Blinky
Hot! New! Windows RG Released:  http://snurl.com/WinRG (SWF Req'd)
Real iMac Origin:   http://web.newsguy.com/dogfish/images/imac.jpg

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